Class TableEncryption
What kind of server-side encryption to apply to this table.
Inheritance
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class TableEncryption : Enum
Syntax (vb)
Public NotInheritable Class TableEncryption
Inherits
Enum
Synopsis
Fields
AWS_MANAGED | Server-side KMS encryption with a master key managed by AWS. |
CUSTOMER_MANAGED | Server-side KMS encryption with a customer master key managed by customer. |
DEFAULT | Server-side KMS encryption with a master key owned by AWS. |
value__ |
Fields
AWS_MANAGED
Server-side KMS encryption with a master key managed by AWS.
public const TableEncryption AWS_MANAGED
Field Value
Type | Description |
---|---|
Table |
CUSTOMER_MANAGED
Server-side KMS encryption with a customer master key managed by customer.
public const TableEncryption CUSTOMER_MANAGED
Field Value
Type | Description |
---|---|
Table |
Remarks
If encryptionKey
is specified, this key will be used, otherwise, one will be defined.
NOTE: if encryptionKey
is not specified and the Table
construct creates
a KMS key for you, the key will be created with default permissions. If you are using
CDKv2, these permissions will be sufficient to enable the key for use with DynamoDB tables.
If you are using CDKv1, make sure the feature flag @aws-cdk/aws-kms:defaultKeyPolicies
is set to true
in your cdk.json
.
DEFAULT
Server-side KMS encryption with a master key owned by AWS.
public const TableEncryption DEFAULT
Field Value
Type | Description |
---|---|
Table |
value__
public int value__
Field Value
Type | Description |
---|---|
System. |