Class CfnEncryptionConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnEncryptionConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEncryptionConfigurationProps>
- Enclosing interface:
CfnEncryptionConfigurationProps
@Stability(Stable)
public static final class CfnEncryptionConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEncryptionConfigurationProps>
A builder for
CfnEncryptionConfigurationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionType(String encryptionType) Sets the value ofCfnEncryptionConfigurationProps.getEncryptionType()kmsAccessRoleArn(String kmsAccessRoleArn) Sets the value ofCfnEncryptionConfigurationProps.getKmsAccessRoleArn()Sets the value ofCfnEncryptionConfigurationProps.getKmsKeyArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionType
@Stability(Stable) public CfnEncryptionConfigurationProps.Builder encryptionType(String encryptionType) Sets the value ofCfnEncryptionConfigurationProps.getEncryptionType()- Parameters:
encryptionType- The type of the KMS key. This parameter is required.- Returns:
this
-
kmsAccessRoleArn
@Stability(Stable) public CfnEncryptionConfigurationProps.Builder kmsAccessRoleArn(String kmsAccessRoleArn) Sets the value ofCfnEncryptionConfigurationProps.getKmsAccessRoleArn()- Parameters:
kmsAccessRoleArn- The Amazon Resource Name (ARN) of the IAM role assumed by AWS IoT Core to call AWS on behalf of the customer.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnEncryptionConfigurationProps.getKmsKeyArn()- Parameters:
kmsKeyArn- The ARN of the customer managed KMS key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEncryptionConfigurationProps>- Returns:
- a new instance of
CfnEncryptionConfigurationProps - Throws:
NullPointerException- if any required attribute was not provided
-