@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.083Z") @Stability(value=Stable) public enum TableEncryption extends Enum<TableEncryption>
Example:
Table table = Table.Builder.create(this, "MyTable")
.partitionKey(Attribute.builder().name("id").type(AttributeType.STRING).build())
.encryption(TableEncryption.CUSTOMER_MANAGED)
.build();
// You can access the CMK that was added to the stack on your behalf by the Table construct via:
IKey tableEncryptionKey = table.getEncryptionKey();
| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static TableEncryption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TableEncryption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final TableEncryption DEFAULT
@Stability(value=Stable) public static final TableEncryption CUSTOMER_MANAGED
If encryptionKey is specified, this key will be used, otherwise, one will be defined.
NOTE: if
encryptionKeyis not specified and theTableconstruct 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:defaultKeyPoliciesis set totruein yourcdk.json.
@Stability(value=Stable) public static final TableEncryption AWS_MANAGED
public static TableEncryption[] values()
for (TableEncryption c : TableEncryption.values()) System.out.println(c);
public static TableEncryption valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.