Skip to main content

table_buckets

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

Overview

Nametable_buckets
TypeResource
Idaws.s3tables.table_buckets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the table bucket (pattern: <code>[0-9a-z-]*</code>)
arnstringThe Amazon Resource Name (ARN) of the table bucket. (pattern: <code>(arn:aws[-a-z0-9]:[a-z0-9]+:[-a-z0-9]:[0-9]{12}:bucket/[a-z0-9_-]{3,63})</code>)
created_atstring (date-time)The date and time the table bucket was created.
owner_account_idstringThe ID of the account that owns the table bucket. (pattern: <code>[0-9].*</code>)
table_bucket_idstringThe unique identifier of the table bucket.
type_stringThe type of the table bucket. (customer, aws)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_table_bucketselecttable_bucket_arn, regionGets details on a table bucket. For more information, see Viewing details about an Amazon S3 table bucket in the Amazon Simple Storage Service User Guide. Permissions You must have the s3tables:GetTableBucket permission to use this operation.
list_table_bucketsselectregionprefix, continuationToken, maxBuckets, typeLists table buckets for your account. For more information, see S3 Table buckets in the Amazon Simple Storage Service User Guide. Permissions You must have the s3tables:ListTableBuckets permission to use this operation.
create_table_bucketinsertregion, nameCreates a table bucket. For more information, see Creating a table bucket in the Amazon Simple Storage Service User Guide. Permissions You must have the s3tables:CreateTableBucket permission to use this operation. If you use this operation with the optional encryptionConfiguration parameter you must have the s3tables:PutTableBucketEncryption permission. If you use this operation with the storageClassConfiguration request parameter, you must have the s3tables:PutTableBucketStorageClass permission. To create a table bucket with tags, you must have the s3tables:TagResource permission in addition to s3tables:CreateTableBucket permission.
delete_table_bucketdeletetable_bucket_arn, regionDeletes a table bucket. For more information, see Deleting a table bucket in the Amazon Simple Storage Service User Guide. Permissions You must have the s3tables:DeleteTableBucket permission to use this operation.
rename_tableexectable_bucket_arn, namespace, name, regionRenames a table or a namespace. For more information, see S3 Tables in the Amazon Simple Storage Service User Guide. Permissions You must have the s3tables:RenameTable 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 current 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.
continuationTokenstringContinuationToken indicates to Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key. You can use this ContinuationToken for pagination of the list results.
maxBucketsintegerThe maximum number of table buckets to return in the list.
prefixstringThe prefix of the table buckets.
typestringThe type of table buckets to filter by in the list.

SELECT examples

Gets details on a table bucket. For more information, see Viewing details about an Amazon S3 table bucket in the Amazon Simple Storage Service User Guide. Permissions You must have the s3tables:GetTableBucket permission to use this operation.

SELECT
name,
arn,
created_at,
owner_account_id,
table_bucket_id,
type_
FROM aws.s3tables.table_buckets
WHERE table_bucket_arn = '{{ table_bucket_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a table bucket. For more information, see Creating a table bucket in the Amazon Simple Storage Service User Guide. Permissions You must have the s3tables:CreateTableBucket permission to use this operation. If you use this operation with the optional encryptionConfiguration parameter you must have the s3tables:PutTableBucketEncryption permission. If you use this operation with the storageClassConfiguration request parameter, you must have the s3tables:PutTableBucketStorageClass permission. To create a table bucket with tags, you must have the s3tables:TagResource permission in addition to s3tables:CreateTableBucket permission.

INSERT INTO aws.s3tables.table_buckets (
name,
encryptionConfiguration,
storageClassConfiguration,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ encryptionConfiguration }}',
'{{ storageClassConfiguration }}',
'{{ tags }}',
'{{ region }}'
RETURNING
arn
;

DELETE examples

Deletes a table bucket. For more information, see Deleting a table bucket in the Amazon Simple Storage Service User Guide. Permissions You must have the s3tables:DeleteTableBucket permission to use this operation.

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

Lifecycle Methods

Renames a table or a namespace. For more information, see S3 Tables in the Amazon Simple Storage Service User Guide. Permissions You must have the s3tables:RenameTable permission to use this operation.

EXEC aws.s3tables.table_buckets.rename_table
@table_bucket_arn='{{ table_bucket_arn }}' --required,
@namespace='{{ namespace }}' --required,
@name='{{ name }}' --required,
@region='{{ region }}' --required
@@json=
'{
"newNamespaceName": "{{ newNamespaceName }}",
"newName": "{{ newName }}",
"versionToken": "{{ versionToken }}"
}'
;