@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:20:00.658Z") public enum StreamEncryption extends java.lang.Enum<StreamEncryption>
Example:
IDestination destination; // SSE with an customer-managed CMK that is explicitly specified Key key; // SSE with an AWS-owned CMK // SSE with an AWS-owned CMK DeliveryStream.Builder.create(this, "Delivery Stream AWS Owned") .encryption(StreamEncryption.AWS_OWNED) .destinations(List.of(destination)) .build(); // SSE with an customer-managed CMK that is created automatically by the CDK // SSE with an customer-managed CMK that is created automatically by the CDK DeliveryStream.Builder.create(this, "Delivery Stream Implicit Customer Managed") .encryption(StreamEncryption.CUSTOMER_MANAGED) .destinations(List.of(destination)) .build(); DeliveryStream.Builder.create(this, "Delivery Stream Explicit Customer Managed") .encryptionKey(key) .destinations(List.of(destination)) .build();
Enum Constant and Description |
---|
AWS_OWNED
(experimental) Data in the stream is stored encrypted by a KMS key owned by AWS and managed for use in multiple AWS accounts.
|
CUSTOMER_MANAGED
(experimental) Data in the stream is stored encrypted by a KMS key managed by the customer.
|
UNENCRYPTED
(experimental) Data in the stream is stored unencrypted.
|
Modifier and Type | Method and Description |
---|---|
static StreamEncryption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StreamEncryption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamEncryption UNENCRYPTED
public static final StreamEncryption CUSTOMER_MANAGED
public static final StreamEncryption AWS_OWNED
public static StreamEncryption[] values()
for (StreamEncryption c : StreamEncryption.values()) System.out.println(c);
public static StreamEncryption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null