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 | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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
// 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
kmsKeyArnoptionalstringkms_key_arnoptionalstrkmsKeyArnoptionalStringKmsKeyArnoptionalstringKmsKeyArnoptional*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 .
sseAlgorithmoptionalstringsse_algorithmoptionalstrsseAlgorithmoptionalStringSseAlgorithmoptionalstringSseAlgorithmoptional*string #The server-side encryption algorithm to use.
notes
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 .