Class CfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dlm.CfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty>
- Enclosing interface:
CfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty
@Stability(Stable)
public static final class CfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty.getCmkArn()encrypted(IResolvable encrypted)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cmkArn
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty.Builder cmkArn(String cmkArn) Sets the value ofCfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty.getCmkArn()- Parameters:
cmkArn- The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.- Returns:
this
-
encrypted
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty.Builder encrypted(Boolean encrypted) - Parameters:
encrypted- To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.- Returns:
this
-
encrypted
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty.Builder encrypted(IResolvable encrypted) - Parameters:
encrypted- To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty>- Returns:
- a new instance of
CfnLifecyclePolicyPropsMixin.EncryptionConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-