Class CfnStream.StreamEncryptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesis.CfnStream.StreamEncryptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStream.StreamEncryptionProperty>
- Enclosing interface:
- CfnStream.StreamEncryptionProperty
@Stability(Stable)
public static final class CfnStream.StreamEncryptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStream.StreamEncryptionProperty>
A builder for
CfnStream.StreamEncryptionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encryptionType
(String encryptionType) Sets the value ofCfnStream.StreamEncryptionProperty.getEncryptionType()
Sets the value ofCfnStream.StreamEncryptionProperty.getKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionType
@Stability(Stable) public CfnStream.StreamEncryptionProperty.Builder encryptionType(String encryptionType) Sets the value ofCfnStream.StreamEncryptionProperty.getEncryptionType()
- Parameters:
encryptionType
- The encryption type to use. This parameter is required. The only valid value isKMS
.- Returns:
this
-
keyId
Sets the value ofCfnStream.StreamEncryptionProperty.getKeyId()
- Parameters:
keyId
- The GUID for the customer-managed AWS KMS key to use for encryption. This parameter is required. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the aliasaws/kinesis
.- Key ARN example:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
- Alias ARN example:
arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
- Globally unique key ID example:
12345678-1234-1234-1234-123456789012
- Alias name example:
alias/MyAliasName
- Master key owned by Kinesis Data Streams:
alias/aws/kinesis
- Key ARN example:
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStream.StreamEncryptionProperty>
- Returns:
- a new instance of
CfnStream.StreamEncryptionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-