Skip to content

get_table_encryption async

get_table_encryption(
    table_bucket_arn: TableBucketARN,
    namespace: NamespaceName,
    name: TableName,
    *,
    config_overrides: Optional[AsyncS3TablesClientConfig] = None,
) -> GetTableEncryptionResponse

Gets the encryption configuration for a table.

Permissions

You must have the s3tables:GetTableEncryption permission to use this operation.

Parameters:

  • table_bucket_arn (TableBucketARN) –

    The Amazon Resource Name (ARN) of the table bucket containing the table.

  • namespace (NamespaceName) –

    The namespace associated with the table.

  • name (TableName) –

    The name of the table.

Raises:

Source code in docs_src/capo_s3tables/_services/async_s3_tables.py
async def get_table_encryption(
    self,
    table_bucket_arn: "capo_s3tables.types.table_bucket_arn.TableBucketARN",
    namespace: "capo_s3tables.types.namespace_name.NamespaceName",
    name: "capo_s3tables.types.table_name.TableName",
    *,
    config_overrides: Optional[AsyncS3TablesClientConfig] = None,
) -> "capo_s3tables.types.get_table_encryption_response.GetTableEncryptionResponse":
    """<p>Gets the encryption configuration for a table.</p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3tables:GetTableEncryption</code> permission to use this operation.</p> </dd> </dl>

    Args:
        table_bucket_arn: <p>The Amazon Resource Name (ARN) of the table bucket containing the table.</p>
        namespace: <p>The namespace associated with the table.</p>
        name: <p>The name of the table.</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_table_encryption_request.GetTableEncryptionRequest]",
    ) -> AsyncOperationResponse[
        "capo_s3tables.types.get_table_encryption_response.GetTableEncryptionResponse"
    ]:
        import capo_s3tables._operations.s3_table_buckets.get_table_encryption

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetTableEncryption")
    )
    input_: capo_s3tables.types.get_table_encryption_request.GetTableEncryptionRequest = {
        "table_bucket_arn": table_bucket_arn,
        "namespace": namespace,
        "name": name,
    }

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