Skip to content
v2.278.0

AnnotationTableConfigurationProperty Struct ​

The annotation table configuration for an S3 Metadata configuration.

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.

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 annotationTableConfigurationProperty: s3.CfnBucket.AnnotationTableConfigurationProperty = {
  configurationState: 'configurationState',

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

    // the properties below are optional
    kmsKeyArn: 'kmsKeyArn',
  },
  role: 'role',
  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

annotation_table_configuration_property = 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"
)
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.*;

AnnotationTableConfigurationProperty annotationTableConfigurationProperty = 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();
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 annotationTableConfigurationProperty = 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"
};
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"

annotationTableConfigurationProperty := &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"),
}

Properties ​

configurationStatestringconfiguration_statestrconfigurationStateStringConfigurationStatestringConfigurationState*string required #
Specifies whether the annotation table configuration is enabled or disabled.
encryptionConfigurationoptionalIResolvable | CfnBucket.MetadataTableEncryptionConfigurationPropertyencryption_configurationoptionaltyping.Union[IResolvable, MetadataTableEncryptionConfigurationProperty]encryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalinterface{} #
The encryption settings for an S3 Metadata journal table or inventory table configuration.
roleoptionalstringroleoptionalstrroleoptionalStringRoleoptionalstringRoleoptional*string #
The ARN of the IAM role that grants Amazon S3 Metadata permission to read annotations from your bucket.
tableArnoptionalstringtable_arnoptionalstrtableArnoptionalStringTableArnoptionalstringTableArnoptional*string #
The Amazon Resource Name (ARN) for the annotation table.
tableNameoptionalstringtable_nameoptionalstrtableNameoptionalStringTableNameoptionalstringTableNameoptional*string #
The name of the annotation table.