Skip to content
v2.278.0

MetadataTableConfigurationProperty Struct ​

We recommend that you create your S3 Metadata configurations by using the V2 MetadataConfiguration resource type. We no longer recommend using the V1 MetadataTableConfiguration resource type. > > If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using the MetadataConfiguration resource type so that you can expire journal table records and create a live inventory table.

Creates a V1 S3 Metadata configuration for a general purpose bucket. For more information, see Accelerating data discovery with S3 Metadata in the Amazon S3 User Guide .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const metadataTableConfigurationProperty: s3.CfnBucket.MetadataTableConfigurationProperty = {
  s3TablesDestination: {
    tableBucketArn: 'tableBucketArn',
    tableName: 'tableName',

    // the properties below are optional
    tableArn: 'tableArn',
    tableNamespace: 'tableNamespace',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3 as s3

metadata_table_configuration_property = s3.CfnBucket.MetadataTableConfigurationProperty(
    s3_tables_destination=s3.CfnBucket.S3TablesDestinationProperty(
        table_bucket_arn="tableBucketArn",
        table_name="tableName",

        # the properties below are optional
        table_arn="tableArn",
        table_namespace="tableNamespace"
    )
)
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.s3.*;

MetadataTableConfigurationProperty metadataTableConfigurationProperty = MetadataTableConfigurationProperty.builder()
        .s3TablesDestination(S3TablesDestinationProperty.builder()
                .tableBucketArn("tableBucketArn")
                .tableName("tableName")

                // the properties below are optional
                .tableArn("tableArn")
                .tableNamespace("tableNamespace")
                .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.S3;

var metadataTableConfigurationProperty = new MetadataTableConfigurationProperty {
    S3TablesDestination = new S3TablesDestinationProperty {
        TableBucketArn = "tableBucketArn",
        TableName = "tableName",

        // the properties below are optional
        TableArn = "tableArn",
        TableNamespace = "tableNamespace"
    }
};
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"

metadataTableConfigurationProperty := &MetadataTableConfigurationProperty{
	S3TablesDestination: &S3TablesDestinationProperty{
		TableBucketArn: jsii.String("tableBucketArn"),
		TableName: jsii.String("tableName"),

		// the properties below are optional
		TableArn: jsii.String("tableArn"),
		TableNamespace: jsii.String("tableNamespace"),
	},
}

Properties ​

s3TablesDestinationIResolvable | CfnBucket.S3TablesDestinationPropertys3_tables_destinationtyping.Union[IResolvable, S3TablesDestinationProperty]s3TablesDestinationIResolvableS3TablesDestinationIResolvableS3TablesDestinationinterface{} required #
The destination information for the metadata table configuration.

The destination table bucket must be in the same Region and AWS account as the general purpose bucket. The specified metadata table name must be unique within the aws_s3_metadata namespace in the destination table bucket.