@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:05.809Z") @Stability(value=Experimental) 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
(experimental) Server-side KMS encryption with a master key managed by AWS.
|
CUSTOMER_MANAGED
(experimental) Server-side KMS encryption with a customer master key managed by customer.
|
DEFAULT
(experimental) 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=Experimental) public static final TableEncryption DEFAULT
@Stability(value=Experimental) public static final TableEncryption CUSTOMER_MANAGED
If encryptionKey is specified, this key will be used, otherwise, one will be defined.
@Stability(value=Experimental) 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.