Class CfnDomainPropsMixin.EncryptionAtRestOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.opensearchservice.mixins.CfnDomainPropsMixin.EncryptionAtRestOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainPropsMixin.EncryptionAtRestOptionsProperty>
- Enclosing interface:
CfnDomainPropsMixin.EncryptionAtRestOptionsProperty
@Stability(Stable)
public static final class CfnDomainPropsMixin.EncryptionAtRestOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomainPropsMixin.EncryptionAtRestOptionsProperty>
A builder for
CfnDomainPropsMixin.EncryptionAtRestOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDomainPropsMixin.EncryptionAtRestOptionsProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnDomainPropsMixin.EncryptionAtRestOptionsProperty.getEnabled()Sets the value ofCfnDomainPropsMixin.EncryptionAtRestOptionsProperty.getKmsKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnDomainPropsMixin.EncryptionAtRestOptionsProperty.Builder enabled(Boolean enabled) Sets the value ofCfnDomainPropsMixin.EncryptionAtRestOptionsProperty.getEnabled()- Parameters:
enabled- Specifytrueto enable encryption at rest. Required if you enable fine-grained access control in AdvancedSecurityOptionsInput . If no encryption at rest options were initially specified in the template, updating this property by adding it causes no interruption. However, if you change this property after it's already been set within a template, the domain is deleted and recreated in order to modify the property.- Returns:
this
-
enabled
@Stability(Stable) public CfnDomainPropsMixin.EncryptionAtRestOptionsProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnDomainPropsMixin.EncryptionAtRestOptionsProperty.getEnabled()- Parameters:
enabled- Specifytrueto enable encryption at rest. Required if you enable fine-grained access control in AdvancedSecurityOptionsInput . If no encryption at rest options were initially specified in the template, updating this property by adding it causes no interruption. However, if you change this property after it's already been set within a template, the domain is deleted and recreated in order to modify the property.- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnDomainPropsMixin.EncryptionAtRestOptionsProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnDomainPropsMixin.EncryptionAtRestOptionsProperty.getKmsKeyId()- Parameters:
kmsKeyId- The KMS key ID. Takes the form1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a. Required if you enable encryption at rest. You can also usekeyAliasas a value.If no encryption at rest options were initially specified in the template, updating this property by adding it causes no interruption. However, if you change this property after it's already been set within a template, the domain is deleted and recreated in order to modify the property.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomainPropsMixin.EncryptionAtRestOptionsProperty>- Returns:
- a new instance of
CfnDomainPropsMixin.EncryptionAtRestOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-