Skip to content
v2.278.0

MetadataConfigurationProperty Struct ​

Creates a V2 Amazon S3 Metadata configuration of 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 metadataConfigurationProperty: s3.CfnBucket.MetadataConfigurationProperty = {
  journalTableConfiguration: {
    recordExpiration: {
      expiration: 'expiration',

      // the properties below are optional
      days: 123,
    },

    // the properties below are optional
    encryptionConfiguration: {
      sseAlgorithm: 'sseAlgorithm',

      // the properties below are optional
      kmsKeyArn: 'kmsKeyArn',
    },
    tableArn: 'tableArn',
    tableName: 'tableName',
  },

  // the properties below are optional
  annotationTableConfiguration: {
    configurationState: 'configurationState',

    // the properties below are optional
    encryptionConfiguration: {
      sseAlgorithm: 'sseAlgorithm',

      // the properties below are optional
      kmsKeyArn: 'kmsKeyArn',
    },
    role: 'role',
    tableArn: 'tableArn',
    tableName: 'tableName',
  },
  destination: {
    tableBucketType: 'tableBucketType',

    // the properties below are optional
    tableBucketArn: 'tableBucketArn',
    tableNamespace: 'tableNamespace',
  },
  inventoryTableConfiguration: {
    configurationState: 'configurationState',

    // the properties below are optional
    encryptionConfiguration: {
      sseAlgorithm: 'sseAlgorithm',

      // the properties below are optional
      kmsKeyArn: 'kmsKeyArn',
    },
    tableArn: 'tableArn',
    tableName: 'tableName',
  },
};
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_configuration_property = s3.CfnBucket.MetadataConfigurationProperty(
    journal_table_configuration=s3.CfnBucket.JournalTableConfigurationProperty(
        record_expiration=s3.CfnBucket.RecordExpirationProperty(
            expiration="expiration",

            # the properties below are optional
            days=123
        ),

        # the properties below are optional
        encryption_configuration=s3.CfnBucket.MetadataTableEncryptionConfigurationProperty(
            sse_algorithm="sseAlgorithm",

            # the properties below are optional
            kms_key_arn="kmsKeyArn"
        ),
        table_arn="tableArn",
        table_name="tableName"
    ),

    # the properties below are optional
    annotation_table_configuration=s3.CfnBucket.AnnotationTableConfigurationProperty(
        configuration_state="configurationState",

        # the properties below are optional
        encryption_configuration=s3.CfnBucket.MetadataTableEncryptionConfigurationProperty(
            sse_algorithm="sseAlgorithm",

            # the properties below are optional
            kms_key_arn="kmsKeyArn"
        ),
        role="role",
        table_arn="tableArn",
        table_name="tableName"
    ),
    destination=s3.CfnBucket.MetadataDestinationProperty(
        table_bucket_type="tableBucketType",

        # the properties below are optional
        table_bucket_arn="tableBucketArn",
        table_namespace="tableNamespace"
    ),
    inventory_table_configuration=s3.CfnBucket.InventoryTableConfigurationProperty(
        configuration_state="configurationState",

        # the properties below are optional
        encryption_configuration=s3.CfnBucket.MetadataTableEncryptionConfigurationProperty(
            sse_algorithm="sseAlgorithm",

            # the properties below are optional
            kms_key_arn="kmsKeyArn"
        ),
        table_arn="tableArn",
        table_name="tableName"
    )
)
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.*;

MetadataConfigurationProperty metadataConfigurationProperty = MetadataConfigurationProperty.builder()
        .journalTableConfiguration(JournalTableConfigurationProperty.builder()
                .recordExpiration(RecordExpirationProperty.builder()
                        .expiration("expiration")

                        // the properties below are optional
                        .days(123)
                        .build())

                // the properties below are optional
                .encryptionConfiguration(MetadataTableEncryptionConfigurationProperty.builder()
                        .sseAlgorithm("sseAlgorithm")

                        // the properties below are optional
                        .kmsKeyArn("kmsKeyArn")
                        .build())
                .tableArn("tableArn")
                .tableName("tableName")
                .build())

        // the properties below are optional
        .annotationTableConfiguration(AnnotationTableConfigurationProperty.builder()
                .configurationState("configurationState")

                // the properties below are optional
                .encryptionConfiguration(MetadataTableEncryptionConfigurationProperty.builder()
                        .sseAlgorithm("sseAlgorithm")

                        // the properties below are optional
                        .kmsKeyArn("kmsKeyArn")
                        .build())
                .role("role")
                .tableArn("tableArn")
                .tableName("tableName")
                .build())
        .destination(MetadataDestinationProperty.builder()
                .tableBucketType("tableBucketType")

                // the properties below are optional
                .tableBucketArn("tableBucketArn")
                .tableNamespace("tableNamespace")
                .build())
        .inventoryTableConfiguration(InventoryTableConfigurationProperty.builder()
                .configurationState("configurationState")

                // the properties below are optional
                .encryptionConfiguration(MetadataTableEncryptionConfigurationProperty.builder()
                        .sseAlgorithm("sseAlgorithm")

                        // the properties below are optional
                        .kmsKeyArn("kmsKeyArn")
                        .build())
                .tableArn("tableArn")
                .tableName("tableName")
                .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 metadataConfigurationProperty = new MetadataConfigurationProperty {
    JournalTableConfiguration = new JournalTableConfigurationProperty {
        RecordExpiration = new RecordExpirationProperty {
            Expiration = "expiration",

            // the properties below are optional
            Days = 123
        },

        // the properties below are optional
        EncryptionConfiguration = new MetadataTableEncryptionConfigurationProperty {
            SseAlgorithm = "sseAlgorithm",

            // the properties below are optional
            KmsKeyArn = "kmsKeyArn"
        },
        TableArn = "tableArn",
        TableName = "tableName"
    },

    // the properties below are optional
    AnnotationTableConfiguration = new AnnotationTableConfigurationProperty {
        ConfigurationState = "configurationState",

        // the properties below are optional
        EncryptionConfiguration = new MetadataTableEncryptionConfigurationProperty {
            SseAlgorithm = "sseAlgorithm",

            // the properties below are optional
            KmsKeyArn = "kmsKeyArn"
        },
        Role = "role",
        TableArn = "tableArn",
        TableName = "tableName"
    },
    Destination = new MetadataDestinationProperty {
        TableBucketType = "tableBucketType",

        // the properties below are optional
        TableBucketArn = "tableBucketArn",
        TableNamespace = "tableNamespace"
    },
    InventoryTableConfiguration = new InventoryTableConfigurationProperty {
        ConfigurationState = "configurationState",

        // the properties below are optional
        EncryptionConfiguration = new MetadataTableEncryptionConfigurationProperty {
            SseAlgorithm = "sseAlgorithm",

            // the properties below are optional
            KmsKeyArn = "kmsKeyArn"
        },
        TableArn = "tableArn",
        TableName = "tableName"
    }
};
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"

metadataConfigurationProperty := &MetadataConfigurationProperty{
	JournalTableConfiguration: &JournalTableConfigurationProperty{
		RecordExpiration: &RecordExpirationProperty{
			Expiration: jsii.String("expiration"),

			// the properties below are optional
			Days: jsii.Number(123),
		},

		// the properties below are optional
		EncryptionConfiguration: &MetadataTableEncryptionConfigurationProperty{
			SseAlgorithm: jsii.String("sseAlgorithm"),

			// the properties below are optional
			KmsKeyArn: jsii.String("kmsKeyArn"),
		},
		TableArn: jsii.String("tableArn"),
		TableName: jsii.String("tableName"),
	},

	// the properties below are optional
	AnnotationTableConfiguration: &AnnotationTableConfigurationProperty{
		ConfigurationState: jsii.String("configurationState"),

		// the properties below are optional
		EncryptionConfiguration: &MetadataTableEncryptionConfigurationProperty{
			SseAlgorithm: jsii.String("sseAlgorithm"),

			// the properties below are optional
			KmsKeyArn: jsii.String("kmsKeyArn"),
		},
		Role: jsii.String("role"),
		TableArn: jsii.String("tableArn"),
		TableName: jsii.String("tableName"),
	},
	Destination: &MetadataDestinationProperty{
		TableBucketType: jsii.String("tableBucketType"),

		// the properties below are optional
		TableBucketArn: jsii.String("tableBucketArn"),
		TableNamespace: jsii.String("tableNamespace"),
	},
	InventoryTableConfiguration: &InventoryTableConfigurationProperty{
		ConfigurationState: jsii.String("configurationState"),

		// the properties below are optional
		EncryptionConfiguration: &MetadataTableEncryptionConfigurationProperty{
			SseAlgorithm: jsii.String("sseAlgorithm"),

			// the properties below are optional
			KmsKeyArn: jsii.String("kmsKeyArn"),
		},
		TableArn: jsii.String("tableArn"),
		TableName: jsii.String("tableName"),
	},
}

Properties ​

annotationTableConfigurationoptionalIResolvable | CfnBucket.AnnotationTableConfigurationPropertyannotation_table_configurationoptionaltyping.Union[IResolvable, AnnotationTableConfigurationProperty]annotationTableConfigurationoptionalIResolvableAnnotationTableConfigurationoptionalIResolvableAnnotationTableConfigurationoptionalinterface{} #
The annotation table configuration for an S3 Metadata configuration.
notes

The annotation table tracks all annotations on objects in your bucket so that you can query annotation data at scale. If you've disabled your annotation table configuration and now want to re-enable it, you must first manually delete the old annotation table from your AWS managed table bucket. Otherwise, the newly re-enabled annotation table configuration will enter a failed state because the annotation table already exists in the table bucket.

destinationoptionalIResolvable | CfnBucket.MetadataDestinationPropertydestinationoptionaltyping.Union[IResolvable, MetadataDestinationProperty]destinationoptionalIResolvableDestinationoptionalIResolvableDestinationoptionalinterface{} #
The destination information for the S3 Metadata configuration.
inventoryTableConfigurationoptionalIResolvable | CfnBucket.InventoryTableConfigurationPropertyinventory_table_configurationoptionaltyping.Union[IResolvable, InventoryTableConfigurationProperty]inventoryTableConfigurationoptionalIResolvableInventoryTableConfigurationoptionalIResolvableInventoryTableConfigurationoptionalinterface{} #
The inventory table configuration for a metadata configuration.
journalTableConfigurationIResolvable | CfnBucket.JournalTableConfigurationPropertyjournal_table_configurationtyping.Union[IResolvable, JournalTableConfigurationProperty]journalTableConfigurationIResolvableJournalTableConfigurationIResolvableJournalTableConfigurationinterface{} required #
The journal table configuration for a metadata configuration.