Skip to content
v2.278.0

CfnTableBucketProps ​

Struct External

Properties for defining a CfnTableBucket.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3tables as s3tables } from 'aws-cdk-lib';
const cfnTableBucketProps: s3tables.CfnTableBucketProps = {
  tableBucketName: 'tableBucketName',

  // the properties below are optional
  encryptionConfiguration: {
    kmsKeyArn: 'kmsKeyArn',
    sseAlgorithm: 'sseAlgorithm',
  },
  loggingConfiguration: {
    targetBucket: 'targetBucket',
    targetObjectKeyFormat: {
      partitionedPrefix: {
        partitionDateSource: 'partitionDateSource',
      },
    },
    targetPrefix: 'targetPrefix',
  },
  metricsConfiguration: {
    status: 'status',
  },
  replicationConfiguration: {
    role: 'role',
    rules: [{
      destinations: [{
        destinationTableBucketArn: 'destinationTableBucketArn',
      }],
    }],
  },
  storageClassConfiguration: {
    storageClass: 'storageClass',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
  unreferencedFileRemoval: {
    noncurrentDays: 123,
    status: 'status',
    unreferencedDays: 123,
  },
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3tables as s3tables

cfn_table_bucket_props = s3tables.CfnTableBucketProps(
    table_bucket_name="tableBucketName",

    # the properties below are optional
    encryption_configuration=s3tables.CfnTableBucket.EncryptionConfigurationProperty(
        kms_key_arn="kmsKeyArn",
        sse_algorithm="sseAlgorithm"
    ),
    logging_configuration=s3tables.CfnTableBucket.LoggingConfigurationProperty(
        target_bucket="targetBucket",
        target_object_key_format=s3tables.CfnTableBucket.TargetObjectKeyFormatProperty(
            partitioned_prefix=s3tables.CfnTableBucket.PartitionedPrefixProperty(
                partition_date_source="partitionDateSource"
            )
        ),
        target_prefix="targetPrefix"
    ),
    metrics_configuration=s3tables.CfnTableBucket.MetricsConfigurationProperty(
        status="status"
    ),
    replication_configuration=s3tables.CfnTableBucket.ReplicationConfigurationProperty(
        role="role",
        rules=[s3tables.CfnTableBucket.ReplicationRuleProperty(
            destinations=[s3tables.CfnTableBucket.ReplicationDestinationProperty(
                destination_table_bucket_arn="destinationTableBucketArn"
            )]
        )]
    ),
    storage_class_configuration=s3tables.CfnTableBucket.StorageClassConfigurationProperty(
        storage_class="storageClass"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    unreferenced_file_removal=s3tables.CfnTableBucket.UnreferencedFileRemovalProperty(
        noncurrent_days=123,
        status="status",
        unreferenced_days=123
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3tables.*;

CfnTableBucketProps cfnTableBucketProps = CfnTableBucketProps.builder()
        .tableBucketName("tableBucketName")

        // the properties below are optional
        .encryptionConfiguration(EncryptionConfigurationProperty.builder()
                .kmsKeyArn("kmsKeyArn")
                .sseAlgorithm("sseAlgorithm")
                .build())
        .loggingConfiguration(LoggingConfigurationProperty.builder()
                .targetBucket("targetBucket")
                .targetObjectKeyFormat(TargetObjectKeyFormatProperty.builder()
                        .partitionedPrefix(PartitionedPrefixProperty.builder()
                                .partitionDateSource("partitionDateSource")
                                .build())
                        .build())
                .targetPrefix("targetPrefix")
                .build())
        .metricsConfiguration(MetricsConfigurationProperty.builder()
                .status("status")
                .build())
        .replicationConfiguration(ReplicationConfigurationProperty.builder()
                .role("role")
                .rules(List.of(ReplicationRuleProperty.builder()
                        .destinations(List.of(ReplicationDestinationProperty.builder()
                                .destinationTableBucketArn("destinationTableBucketArn")
                                .build()))
                        .build()))
                .build())
        .storageClassConfiguration(StorageClassConfigurationProperty.builder()
                .storageClass("storageClass")
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .unreferencedFileRemoval(UnreferencedFileRemovalProperty.builder()
                .noncurrentDays(123)
                .status("status")
                .unreferencedDays(123)
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3Tables;

var cfnTableBucketProps = new CfnTableBucketProps {
    TableBucketName = "tableBucketName",

    // the properties below are optional
    EncryptionConfiguration = new EncryptionConfigurationProperty {
        KmsKeyArn = "kmsKeyArn",
        SseAlgorithm = "sseAlgorithm"
    },
    LoggingConfiguration = new LoggingConfigurationProperty {
        TargetBucket = "targetBucket",
        TargetObjectKeyFormat = new TargetObjectKeyFormatProperty {
            PartitionedPrefix = new PartitionedPrefixProperty {
                PartitionDateSource = "partitionDateSource"
            }
        },
        TargetPrefix = "targetPrefix"
    },
    MetricsConfiguration = new MetricsConfigurationProperty {
        Status = "status"
    },
    ReplicationConfiguration = new ReplicationConfigurationProperty {
        Role = "role",
        Rules = new [] { new ReplicationRuleProperty {
            Destinations = new [] { new ReplicationDestinationProperty {
                DestinationTableBucketArn = "destinationTableBucketArn"
            } }
        } }
    },
    StorageClassConfiguration = new StorageClassConfigurationProperty {
        StorageClass = "storageClass"
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    UnreferencedFileRemoval = new UnreferencedFileRemovalProperty {
        NoncurrentDays = 123,
        Status = "status",
        UnreferencedDays = 123
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnTableBucketProps := &CfnTableBucketProps{
	TableBucketName: jsii.String("tableBucketName"),

	// the properties below are optional
	EncryptionConfiguration: &EncryptionConfigurationProperty{
		KmsKeyArn: jsii.String("kmsKeyArn"),
		SseAlgorithm: jsii.String("sseAlgorithm"),
	},
	LoggingConfiguration: &LoggingConfigurationProperty{
		TargetBucket: jsii.String("targetBucket"),
		TargetObjectKeyFormat: &TargetObjectKeyFormatProperty{
			PartitionedPrefix: &PartitionedPrefixProperty{
				PartitionDateSource: jsii.String("partitionDateSource"),
			},
		},
		TargetPrefix: jsii.String("targetPrefix"),
	},
	MetricsConfiguration: &MetricsConfigurationProperty{
		Status: jsii.String("status"),
	},
	ReplicationConfiguration: &ReplicationConfigurationProperty{
		Role: jsii.String("role"),
		Rules: []interface{}{
			&ReplicationRuleProperty{
				Destinations: []interface{}{
					&ReplicationDestinationProperty{
						DestinationTableBucketArn: jsii.String("destinationTableBucketArn"),
					},
				},
			},
		},
	},
	StorageClassConfiguration: &StorageClassConfigurationProperty{
		StorageClass: jsii.String("storageClass"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	UnreferencedFileRemoval: &UnreferencedFileRemovalProperty{
		NoncurrentDays: jsii.Number(123),
		Status: jsii.String("status"),
		UnreferencedDays: jsii.Number(123),
	},
}

Properties ​

encryptionConfigurationoptionalIResolvable | CfnTableBucket.EncryptionConfigurationPropertyencryption_configurationoptionaltyping.Union[IResolvable, EncryptionConfigurationProperty]encryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalinterface{} #
Configuration specifying how data should be encrypted.

This structure defines the encryption algorithm and optional KMS key to be used for server-side encryption.

loggingConfigurationoptionalIResolvable | CfnTableBucket.LoggingConfigurationPropertylogging_configurationoptionaltyping.Union[IResolvable, LoggingConfigurationProperty]loggingConfigurationoptionalIResolvableLoggingConfigurationoptionalIResolvableLoggingConfigurationoptionalinterface{} #
Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a table bucket.
metricsConfigurationoptionalIResolvable | CfnTableBucket.MetricsConfigurationPropertymetrics_configurationoptionaltyping.Union[IResolvable, MetricsConfigurationProperty]metricsConfigurationoptionalIResolvableMetricsConfigurationoptionalIResolvableMetricsConfigurationoptionalinterface{} #
Settings governing the Metric configuration for the table bucket.
replicationConfigurationoptionalIResolvable | CfnTableBucket.ReplicationConfigurationPropertyreplication_configurationoptionaltyping.Union[IResolvable, ReplicationConfigurationProperty]replicationConfigurationoptionalIResolvableReplicationConfigurationoptionalIResolvableReplicationConfigurationoptionalinterface{} #
Specifies replication configuration for the table bucket.
storageClassConfigurationoptionalIResolvable | CfnTableBucket.StorageClassConfigurationPropertystorage_class_configurationoptionaltyping.Union[IResolvable, StorageClassConfigurationProperty]storageClassConfigurationoptionalIResolvableStorageClassConfigurationoptionalIResolvableStorageClassConfigurationoptionalinterface{} #
The configuration details for the storage class of tables or table buckets.

This allows you to optimize storage costs by selecting the appropriate storage class based on your access patterns and performance requirements.

tableBucketNamestringtable_bucket_namestrtableBucketNameStringTableBucketNamestringTableBucketName*string required #
The name for the table bucket.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
User tags (key-value pairs) to associate with the table bucket.
unreferencedFileRemovaloptionalIResolvable | CfnTableBucket.UnreferencedFileRemovalPropertyunreferenced_file_removaloptionaltyping.Union[IResolvable, UnreferencedFileRemovalProperty]unreferencedFileRemovaloptionalIResolvableUnreferencedFileRemovaloptionalIResolvableUnreferencedFileRemovaloptionalinterface{} #
The unreferenced file removal settings for your table bucket.
notes

Unreferenced file removal identifies and deletes all objects that are not referenced by any table snapshots. For more information, see the Amazon S3 User Guide .