Enum StreamEncryption
- All Implemented Interfaces:
Serializable
,Comparable<StreamEncryption>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.122Z")
@Stability(Experimental)
public enum StreamEncryption
extends Enum<StreamEncryption>
(experimental) Options for server-side encryption of a delivery stream.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription(experimental) Data in the stream is stored encrypted by a KMS key owned by AWS and managed for use in multiple AWS accounts.(experimental) Data in the stream is stored encrypted by a KMS key managed by the customer.(experimental) Data in the stream is stored unencrypted. -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamEncryption
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.
-
Enum Constant Details
-
UNENCRYPTED
(experimental) Data in the stream is stored unencrypted. -
CUSTOMER_MANAGED
(experimental) Data in the stream is stored encrypted by a KMS key managed by the customer. -
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.
-
-
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
-