Enum TableEncryption

java.lang.Object
java.lang.Enum<TableEncryption>
software.amazon.awscdk.services.dynamodb.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();
 
  • Enum Constant Details

    • DEFAULT

      @Stability(Stable) public static final TableEncryption DEFAULT
      Server-side KMS encryption with a master key owned by AWS.
    • CUSTOMER_MANAGED

      @Stability(Stable) public static final TableEncryption 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 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.

    • AWS_MANAGED

      @Stability(Stable) public static final TableEncryption AWS_MANAGED
      Server-side KMS encryption with a master key managed by AWS.
  • Method Details

    • values

      public static TableEncryption[] 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

      public static TableEncryption valueOf(String name)
      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 name
      NullPointerException - if the argument is null