Skip to main content

table_encryptions

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

Overview

Nametable_encryptions
TypeResource
Idaws.s3tables.table_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_encryptionselecttable_bucket_arn, namespace, name, regionGets the encryption configuration for a table. Permissions You must have the s3tables:GetTableEncryption 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
namestringThe name of the table.
namespacestringThe namespace associated with the table.
regionstringAWS region (default: us-east-1)
table_bucket_arnstringThe Amazon Resource Name (ARN) of the table bucket containing the table.

SELECT examples

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

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