Class CfnChannel.EncryptionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesis.CfnChannel.EncryptionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.EncryptionConfigurationProperty>
- Enclosing interface:
CfnChannel.EncryptionConfigurationProperty
@Stability(Stable)
public static final class CfnChannel.EncryptionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.EncryptionConfigurationProperty>
A builder for
CfnChannel.EncryptionConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionType(String encryptionType) Sets the value ofCfnChannel.EncryptionConfigurationProperty.getEncryptionType()Sets the value ofCfnChannel.EncryptionConfigurationProperty.getKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionType
@Stability(Stable) public CfnChannel.EncryptionConfigurationProperty.Builder encryptionType(String encryptionType) Sets the value ofCfnChannel.EncryptionConfigurationProperty.getEncryptionType()- Parameters:
encryptionType- The encryption type. This parameter is required. KMS is the only supported value.- Returns:
this
-
keyId
Sets the value ofCfnChannel.EncryptionConfigurationProperty.getKeyId()- Parameters:
keyId- The customer-managed AWS KMS key. This parameter is required. Accepts a key GUID, key ARN, alias ARN, or alias name prefixed by 'alias/'. The Kinesis Data Streams managed alias 'aws/kinesis' is not accepted - the key must be customer-owned so it can also be used by readers of the destination.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannel.EncryptionConfigurationProperty>- Returns:
- a new instance of
CfnChannel.EncryptionConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-