@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:11.139Z") @Stability(value=Experimental) public enum StreamEncryption extends 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(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.
|
@Stability(value=Experimental) public static final StreamEncryption UNENCRYPTED
@Stability(value=Experimental) public static final StreamEncryption CUSTOMER_MANAGED
@Stability(value=Experimental) public static final StreamEncryption AWS_OWNED
public static StreamEncryption[] values()
for (StreamEncryption c : StreamEncryption.values()) System.out.println(c);
public static StreamEncryption 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.