Skip to content
v2.277.0

Experimental

@aws-cdk/aws-s3tables-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

TableBucketProps Struct ​

Parameters for constructing a TableBucket.

Example ​

ts
// Build a Table bucket
const sampleTableBucket = new TableBucket(scope, 'ExampleTableBucket', {
    // optional fields:
    tableBucketName: 'example-bucket-1', // if omitted, CDK generates a unique name that satisfies the S3 Tables naming rules
    unreferencedFileRemoval: {
        status: UnreferencedFileRemovalStatus.ENABLED,
        noncurrentDays: 20,
        unreferencedDays: 20,
    }
});
python
from aws_cdk.aws_s3tables_alpha import UnreferencedFileRemoval
# Build a Table bucket
sample_table_bucket = TableBucket(scope, "ExampleTableBucket",
    # optional fields:
    table_bucket_name="example-bucket-1",  # if omitted, CDK generates a unique name that satisfies the S3 Tables naming rules
    unreferenced_file_removal=UnreferencedFileRemoval(
        status=UnreferencedFileRemovalStatus.ENABLED,
        noncurrent_days=20,
        unreferenced_days=20
    )
)
java
// Build a Table bucket
TableBucket sampleTableBucket = TableBucket.Builder.create(scope, "ExampleTableBucket")
        // optional fields:
        .tableBucketName("example-bucket-1") // if omitted, CDK generates a unique name that satisfies the S3 Tables naming rules
        .unreferencedFileRemoval(UnreferencedFileRemoval.builder()
                .status(UnreferencedFileRemovalStatus.ENABLED)
                .noncurrentDays(20)
                .unreferencedDays(20)
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.S3Tables.Alpha
// Build a Table bucket
var sampleTableBucket = new TableBucket(scope, "ExampleTableBucket", new TableBucketProps {
    // optional fields:
    TableBucketName = "example-bucket-1",  // if omitted, CDK generates a unique name that satisfies the S3 Tables naming rules
    UnreferencedFileRemoval = new UnreferencedFileRemoval {
        Status = UnreferencedFileRemovalStatus.ENABLED,
        NoncurrentDays = 20,
        UnreferencedDays = 20
    }
});
go
// Build a Table bucket
sampleTableBucket := awscdkawss3tablesalpha.NewTableBucket(*scope, jsii.String("ExampleTableBucket"), &TableBucketProps{
	// optional fields:
	TableBucketName: jsii.String("example-bucket-1"),
	 // if omitted, CDK generates a unique name that satisfies the S3 Tables naming rules
	UnreferencedFileRemoval: &UnreferencedFileRemoval{
		Status: *awscdkawss3tablesalpha.UnreferencedFileRemovalStatus_ENABLED,
		NoncurrentDays: jsii.Number(20),
		UnreferencedDays: jsii.Number(20),
	},
})

Properties ​

accountoptionalstringaccountoptionalstraccountoptionalStringAccountoptionalstringAccountoptional*string#
AWS Account ID of the table bucket owner.

Default: it's assumed the bucket belongs to the same account as the scope it's being imported into

encryptionoptionalTableBucketEncryptionencryptionoptionalTableBucketEncryptionencryptionoptionalTableBucketEncryptionEncryptionoptionalTableBucketEncryptionEncryptionoptionalTableBucketEncryption#
The kind of server-side encryption to apply to this bucket.

Default: KMS if encryptionKey is specified, or S3_MANAGED otherwise.

If you choose KMS, you can specify a KMS key via encryptionKey. If encryption key is not specified, a key will automatically be created.

encryptionKeyoptionalIKeyencryption_keyoptionalIKeyencryptionKeyoptionalIKeyEncryptionKeyoptionalIKeyEncryptionKeyoptionalIKey#
External KMS key to use for bucket encryption.

Default: If encryption is set to KMS and this property is undefined, a new KMS key will be created and associated with this bucket.

The encryption property must be either not specified or set to KMS. An error will be emitted if encryption is set to S3_MANAGED.

regionoptionalstringregionoptionalstrregionoptionalStringRegionoptionalstringRegionoptional*string#
AWS region that the table bucket exists in.

Default: it's assumed the bucket is in the same region as the scope it's being imported into

removalPolicyoptionalRemovalPolicyremoval_policyoptionalRemovalPolicyremovalPolicyoptionalRemovalPolicyRemovalPolicyoptionalRemovalPolicyRemovalPolicyoptionalRemovalPolicy= RETAIN#
Controls what happens to this table bucket it it stoped being managed by cloudformation.
requestMetricsStatusoptionalRequestMetricsStatusrequest_metrics_statusoptionalRequestMetricsStatusrequestMetricsStatusoptionalRequestMetricsStatusRequestMetricsStatusoptionalRequestMetricsStatusRequestMetricsStatusoptionalRequestMetricsStatus#
CloudWatch request metrics configuration for the table bucket.

Default: Request metrics are disabled

When enabled, S3 Tables publishes CloudWatch request metrics for the table bucket. Request metrics provide insight into Amazon S3 Tables requests.

storageClassoptionalStorageClassstorage_classoptionalStorageClassstorageClassoptionalStorageClassStorageClassoptionalStorageClassStorageClassoptionalStorageClass#
The storage class for the table bucket.

Default: STANDARD storage class

Determines the storage tier used for table data, allowing optimization for different access patterns and cost profiles.

tableBucketNameoptionalstringtable_bucket_nameoptionalstrtableBucketNameoptionalStringTableBucketNameoptionalstringTableBucketNameoptional*string#
Name of the S3 TableBucket.

Default: generated by CDK from the stack and construct path.

unreferencedFileRemovaloptionalUnreferencedFileRemovalunreferenced_file_removaloptionalUnreferencedFileRemovalunreferencedFileRemovaloptionalUnreferencedFileRemovalUnreferencedFileRemovaloptionalUnreferencedFileRemovalUnreferencedFileRemovaloptionalUnreferencedFileRemoval#
Unreferenced file removal settings for the S3 TableBucket.

Default: Enabled with default values