# MetadataTableEncryptionConfigurationProperty

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

- Source: Generated at build time
- Type last changed: v2.208.0 · 29 Jul 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `kmsKeyArn`: 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.

- `sseAlgorithm`: 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.
