# EncryptionSpecificationProperty

Specifies the encryption at rest option selected for the table.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

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

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

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

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.Cassandra;

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

    // the properties below are optional
    KmsKeyIdentifier = "kmsKeyIdentifier"
};
```

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"

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

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

## Properties

- `encryptionType`: string (required) = "AWS_OWNED_KMS_KEY" — The encryption at rest options for the table.

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

- `kmsKeyIdentifier`: string — Requires a `kms_key_identifier` in the format of a key ARN.
