Skip to content
v2.278.0

MetadataTableEncryptionConfigurationProperty Struct ​

The encryption settings for an S3 Metadata journal table or inventory table configuration.

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 metadataTableEncryptionConfigurationProperty: s3.CfnBucket.MetadataTableEncryptionConfigurationProperty = {
  sseAlgorithm: 'sseAlgorithm',

  // the properties below are optional
  kmsKeyArn: 'kmsKeyArn',
};
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_encryption_configuration_property = s3.CfnBucket.MetadataTableEncryptionConfigurationProperty(
    sse_algorithm="sseAlgorithm",

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

MetadataTableEncryptionConfigurationProperty metadataTableEncryptionConfigurationProperty = MetadataTableEncryptionConfigurationProperty.builder()
        .sseAlgorithm("sseAlgorithm")

        // the properties below are optional
        .kmsKeyArn("kmsKeyArn")
        .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 metadataTableEncryptionConfigurationProperty = new MetadataTableEncryptionConfigurationProperty {
    SseAlgorithm = "sseAlgorithm",

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

metadataTableEncryptionConfigurationProperty := &MetadataTableEncryptionConfigurationProperty{
	SseAlgorithm: jsii.String("sseAlgorithm"),

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

Properties ​

kmsKeyArnoptionalstringkms_key_arnoptionalstrkmsKeyArnoptionalStringKmsKeyArnoptionalstringKmsKeyArnoptional*string #
If server-side encryption with AWS Key Management Service ( AWS ) keys (SSE-KMS) is specified, you must also specify the KMS key Amazon Resource Name (ARN).

You must specify a customer-managed KMS key that's located in the same Region as the general purpose bucket that corresponds to the metadata table configuration.

sseAlgorithmstringsse_algorithmstrsseAlgorithmStringSseAlgorithmstringSseAlgorithm*string required #
The encryption type specified for a metadata table.

To specify server-side encryption with AWS Key Management Service ( AWS ) keys (SSE-KMS), use the aws:kms value. To specify server-side encryption with Amazon S3 managed keys (SSE-S3), use the AES256 value.