Enum TableEncryption
- All Implemented Interfaces:
Serializable
,Comparable<TableEncryption>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.297Z")
@Stability(Stable)
public enum TableEncryption
extends Enum<TableEncryption>
What kind of server-side encryption to apply to this table.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionServer-side KMS encryption with a master key managed by AWS.Server-side KMS encryption with a customer master key managed by customer.Server-side KMS encryption with a master key owned by AWS. -
Method Summary
Modifier and TypeMethodDescriptionstatic TableEncryption
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.
-
Enum Constant Details
-
DEFAULT
Server-side KMS encryption with a master key owned by AWS. -
CUSTOMER_MANAGED
Server-side KMS encryption with a customer master key managed by customer.If
encryptionKey
is specified, this key will be used, otherwise, one will be defined.NOTE: if
encryptionKey
is not specified and theTable
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 totrue
in yourcdk.json
. -
AWS_MANAGED
Server-side KMS encryption with a master key managed by AWS.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-