# EncryptionConfigurationProperty

Struct · External

Configuration specifying how data should be encrypted.

This structure defines the encryption algorithm and optional KMS key to be used for server-side encryption.

- Source: Generated at build time
- Type last changed: v2.191.0 · 23 Apr 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_s3tables as s3tables } from 'aws-cdk-lib';
const encryptionConfigurationProperty: s3tables.CfnTableBucket.EncryptionConfigurationProperty = {
  kmsKeyArn: 'kmsKeyArn',
  sseAlgorithm: 'sseAlgorithm',
};
```

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_s3tables as s3tables

encryption_configuration_property = s3tables.CfnTableBucket.EncryptionConfigurationProperty(
    kms_key_arn="kmsKeyArn",
    sse_algorithm="sseAlgorithm"
)
```

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.s3tables.*;

EncryptionConfigurationProperty encryptionConfigurationProperty = EncryptionConfigurationProperty.builder()
        .kmsKeyArn("kmsKeyArn")
        .sseAlgorithm("sseAlgorithm")
        .build();
```

C#:

```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.S3Tables;

var encryptionConfigurationProperty = new EncryptionConfigurationProperty {
    KmsKeyArn = "kmsKeyArn",
    SseAlgorithm = "sseAlgorithm"
};
```

Go:

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

encryptionConfigurationProperty := &EncryptionConfigurationProperty{
	KmsKeyArn: jsii.String("kmsKeyArn"),
	SseAlgorithm: jsii.String("sseAlgorithm"),
}
```

## Properties

- `kmsKeyArn`: string — The Amazon Resource Name (ARN) of the KMS key to use for encryption.

  This field is required only when `sseAlgorithm` is set to `aws:kms` .

- `sseAlgorithm`: string — The server-side encryption algorithm to use.

  Valid values are `AES256` for S3-managed encryption keys, or `aws:kms` for AWS KMS-managed encryption keys. If you choose SSE-KMS encryption you must grant the S3 Tables maintenance principal access to your KMS key. For more information, see [Permissions requirements for S3 Tables SSE-KMS encryption](https://docs.aws.amazon.com//AmazonS3/latest/userguide/s3-tables-kms-permissions.html) .
