Skip to content
v2.278.0

EncryptionSpecificationProperty Struct ​

Specifies the encryption at rest option selected for the table.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cassandra as cassandra } from 'aws-cdk-lib';
const encryptionSpecificationProperty: cassandra.CfnTable.EncryptionSpecificationProperty = {
  encryptionType: 'encryptionType',

  // the properties below are optional
  kmsKeyIdentifier: 'kmsKeyIdentifier',
};
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_cassandra as cassandra

encryption_specification_property = cassandra.CfnTable.EncryptionSpecificationProperty(
    encryption_type="encryptionType",

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

EncryptionSpecificationProperty encryptionSpecificationProperty = EncryptionSpecificationProperty.builder()
        .encryptionType("encryptionType")

        // the properties below are optional
        .kmsKeyIdentifier("kmsKeyIdentifier")
        .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.Cassandra;

var encryptionSpecificationProperty = new EncryptionSpecificationProperty {
    EncryptionType = "encryptionType",

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

encryptionSpecificationProperty := &EncryptionSpecificationProperty{
	EncryptionType: jsii.String("encryptionType"),

	// the properties below are optional
	KmsKeyIdentifier: jsii.String("kmsKeyIdentifier"),
}

Properties ​

encryptionTypestringencryption_typestrencryptionTypeStringEncryptionTypestringEncryptionType*string = "AWS_OWNED_KMS_KEY" required #
The encryption at rest options for the table.
notes
  • AWS owned key (default) - AWS_OWNED_KMS_KEY
  • Customer managed key - CUSTOMER_MANAGED_KMS_KEY

If you choose CUSTOMER_MANAGED_KMS_KEY , a kms_key_identifier in the format of a key ARN is required.

Valid values: CUSTOMER_MANAGED_KMS_KEY | AWS_OWNED_KMS_KEY .

kmsKeyIdentifieroptionalstringkms_key_identifieroptionalstrkmsKeyIdentifieroptionalStringKmsKeyIdentifieroptionalstringKmsKeyIdentifieroptional*string #
Requires a `kms_key_identifier` in the format of a key ARN.