Skip to content

list_storage_lens_configurations

list_storage_lens_configurations(
    *,
    config_overrides: Optional[S3TablesClientConfig] = None,
    next_token: Optional[NextToken] = None,
) -> ListStorageLensConfigurationsResponse

Lists the Amazon S3 Storage Lens for Tables configurations in your account whose home Region is the Region that you send the request to. For more information, see Gaining visibility into your S3 Tables storage activity and usage with Amazon S3 Storage Lens for Tables in the Amazon Simple Storage Service User Guide.

Results are paginated. To get the next page of results, pass the nextToken from a response in your next request. Continue until a response has no nextToken.

Permissions

You must have the s3tables:ListStorageLensConfigurations permission to use this operation. For more information, see Setting Amazon S3 Storage Lens for Tables permissions in the Amazon Simple Storage Service User Guide.

Parameters:

  • next_token (Optional[NextToken], default: None ) –

    The nextToken from a previous response, to get the next page of results.

Raises:

Source code in docs_src/capo_s3tables/_services/s3_tables.py
def list_storage_lens_configurations(
    self,
    *,
    config_overrides: Optional[S3TablesClientConfig] = None,
    next_token: Optional["capo_s3tables.types.next_token.NextToken"] = None,
) -> "capo_s3tables.types.list_storage_lens_configurations_response.ListStorageLensConfigurationsResponse":
    """<p>Lists the Amazon S3 Storage Lens for Tables configurations in your account whose home Region is the Region that you send the request to. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens.html">Gaining visibility into your S3 Tables storage activity and usage with Amazon S3 Storage Lens for Tables</a> in the <i>Amazon Simple Storage Service User Guide</i>.</p> <p>Results are paginated. To get the next page of results, pass the <code>nextToken</code> from a response in your next request. Continue until a response has no <code>nextToken</code>.</p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3tables:ListStorageLensConfigurations</code> permission to use this operation. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens-permissions.html">Setting Amazon S3 Storage Lens for Tables permissions</a> in the <i>Amazon Simple Storage Service User Guide</i>.</p> </dd> </dl>

    Args:
        next_token: <p>The <code>nextToken</code> from a previous response, to get the next page of results.</p>

    Raises:
        capo_s3tables.errors.access_denied_exception.AccessDeniedException: <p>The action cannot be performed because you do not have the required permission.</p>
        capo_s3tables.errors.bad_request_exception.BadRequestException: <p>The request is invalid or malformed.</p>
        capo_s3tables.errors.forbidden_exception.ForbiddenException: <p>The caller isn't authorized to make the request.</p>
        capo_s3tables.errors.internal_server_error_exception.InternalServerErrorException: <p>The request failed due to an internal server error.</p>
        capo_s3tables.errors.not_found_exception.NotFoundException: <p>The request was rejected because the specified resource could not be found.</p>
        capo_s3tables.errors.too_many_requests_exception.TooManyRequestsException: <p>The limit on the number of requests per second was exceeded.</p>
        capo_s3tables.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_s3tables.types.list_storage_lens_configurations_request.ListStorageLensConfigurationsRequest]",
    ) -> OperationResponse[
        "capo_s3tables.types.list_storage_lens_configurations_response.ListStorageLensConfigurationsResponse"
    ]:
        import capo_s3tables._operations.s3_table_buckets.list_storage_lens_configurations

        output, http_response = (
            capo_s3tables._operations.s3_table_buckets.list_storage_lens_configurations.list_storage_lens_configurations(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListStorageLensConfigurations")
    )
    input_: capo_s3tables.types.list_storage_lens_configurations_request.ListStorageLensConfigurationsRequest = {}
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output