Skip to content

get_storage_lens_configuration async

get_storage_lens_configuration(
    storage_lens_id: StorageLensConfigurationId,
    *,
    config_overrides: Optional[AsyncS3TablesClientConfig] = None,
) -> GetStorageLensConfigurationResponse

Gets an Amazon S3 Storage Lens for Tables configuration. Send the request to the configuration's home Region. 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. For a complete list of S3 Storage Lens for Tables metrics, see Amazon S3 Storage Lens for Tables metrics glossary in the Amazon Simple Storage Service User Guide.

Permissions

You must have the s3tables:GetStorageLensConfiguration 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:

Raises:

Source code in docs_src/capo_s3tables/_services/async_s3_tables.py
async def get_storage_lens_configuration(
    self,
    storage_lens_id: "capo_s3tables.types.storage_lens_configuration_id.StorageLensConfigurationId",
    *,
    config_overrides: Optional[AsyncS3TablesClientConfig] = None,
) -> "capo_s3tables.types.get_storage_lens_configuration_response.GetStorageLensConfigurationResponse":
    """<p>Gets an Amazon S3 Storage Lens for Tables configuration. Send the request to the configuration's home Region. 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>. For a complete list of S3 Storage Lens for Tables metrics, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-storage-lens-metrics-glossary.html">Amazon S3 Storage Lens for Tables metrics glossary</a> in the <i>Amazon Simple Storage Service User Guide</i>.</p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3tables:GetStorageLensConfiguration</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:
        storage_lens_id: <p>The ID of the S3 Storage Lens configuration.</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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_s3tables.types.get_storage_lens_configuration_request.GetStorageLensConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_s3tables.types.get_storage_lens_configuration_response.GetStorageLensConfigurationResponse"
    ]:
        import capo_s3tables._operations.s3_table_buckets.get_storage_lens_configuration

        (
            output,
            http_response,
        ) = await capo_s3tables._operations.s3_table_buckets.get_storage_lens_configuration.async_get_storage_lens_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetStorageLensConfiguration")
    )
    input_: capo_s3tables.types.get_storage_lens_configuration_request.GetStorageLensConfigurationRequest = {
        "storage_lens_id": storage_lens_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output