Skip to main content

table_bucket_encryptions

Creates, updates, deletes, gets or lists a table_bucket_encryptions resource.

Overview

Nametable_bucket_encryptions
TypeResource
Idaws.s3tables.table_bucket_encryptions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
kms_key_arnstringThe Amazon Resource Name (ARN) of the KMS key to use for encryption. This field is required only when sseAlgorithm is set to aws:kms. (pattern: <code>(arn:aws[-a-z0-9]:kms:[-a-z0-9]:[0-9]{12}:key/.+)</code>)
sse_algorithmstringThe server-side encryption algorithm to use. Valid values are AES256 for S3-managed encryption keys, or aws:kms for Amazon Web Services KMS-managed encryption keys. If you choose SSE-KMS encryption you must grant the S3 Tables maintenance principal access to your KMS key. For more information, see Permissions requirements for S3 Tables SSE-KMS encryption. (AES256, aws:kms)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_table_bucket_encryptionselecttable_bucket_arn, regionGets the encryption configuration for a table bucket. Permissions You must have the s3tables:GetTableBucketEncryption permission to use this operation.
put_table_bucket_encryptionreplacetable_bucket_arn, region, encryptionConfigurationSets the encryption configuration for a table bucket. Permissions You must have the s3tables:PutTableBucketEncryption permission to use this operation. If you choose SSE-KMS encryption you must grant the S3 Tables maintenance principal access to your KMS key. For more information, see Permissions requirements for S3 Tables SSE-KMS encryption in the Amazon Simple Storage Service User Guide.
delete_table_bucket_encryptiondeletetable_bucket_arn, regionDeletes the encryption configuration for a table bucket. Permissions You must have the s3tables:DeleteTableBucketEncryption permission to use this operation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
table_bucket_arnstringThe Amazon Resource Name (ARN) of the table bucket.

SELECT examples

Gets the encryption configuration for a table bucket. Permissions You must have the s3tables:GetTableBucketEncryption permission to use this operation.

SELECT
kms_key_arn,
sse_algorithm
FROM aws.s3tables.table_bucket_encryptions
WHERE table_bucket_arn = '{{ table_bucket_arn }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Sets the encryption configuration for a table bucket. Permissions You must have the s3tables:PutTableBucketEncryption permission to use this operation. If you choose SSE-KMS encryption you must grant the S3 Tables maintenance principal access to your KMS key. For more information, see Permissions requirements for S3 Tables SSE-KMS encryption in the Amazon Simple Storage Service User Guide.

REPLACE aws.s3tables.table_bucket_encryptions
SET
encryptionConfiguration = '{{ encryptionConfiguration }}'
WHERE
table_bucket_arn = '{{ table_bucket_arn }}' --required
AND region = '{{ region }}' --required
AND encryptionConfiguration = '{{ encryptionConfiguration }}' --required;

DELETE examples

Deletes the encryption configuration for a table bucket. Permissions You must have the s3tables:DeleteTableBucketEncryption permission to use this operation.

DELETE FROM aws.s3tables.table_bucket_encryptions
WHERE table_bucket_arn = '{{ table_bucket_arn }}' --required
AND region = '{{ region }}' --required
;