Class CfnTable.SSESpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.CfnTable.SSESpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.SSESpecificationProperty>
- Enclosing interface:
CfnTable.SSESpecificationProperty
@Stability(Stable)
public static final class CfnTable.SSESpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.SSESpecificationProperty>
A builder for
CfnTable.SSESpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.kmsMasterKeyId
(String kmsMasterKeyId) Sets the value ofCfnTable.SSESpecificationProperty.getKmsMasterKeyId()
sseEnabled
(Boolean sseEnabled) Sets the value ofCfnTable.SSESpecificationProperty.getSseEnabled()
sseEnabled
(IResolvable sseEnabled) Sets the value ofCfnTable.SSESpecificationProperty.getSseEnabled()
Sets the value ofCfnTable.SSESpecificationProperty.getSseType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sseEnabled
Sets the value ofCfnTable.SSESpecificationProperty.getSseEnabled()
- Parameters:
sseEnabled
- Indicates whether server-side encryption is done using an AWS managed key or an AWS owned key. This parameter is required. If enabled (true), server-side encryption type is set toKMS
and an AWS managed key is used ( AWS KMS charges apply). If disabled (false) or not specified, server-side encryption is set to AWS owned key.- Returns:
this
-
sseEnabled
@Stability(Stable) public CfnTable.SSESpecificationProperty.Builder sseEnabled(IResolvable sseEnabled) Sets the value ofCfnTable.SSESpecificationProperty.getSseEnabled()
- Parameters:
sseEnabled
- Indicates whether server-side encryption is done using an AWS managed key or an AWS owned key. This parameter is required. If enabled (true), server-side encryption type is set toKMS
and an AWS managed key is used ( AWS KMS charges apply). If disabled (false) or not specified, server-side encryption is set to AWS owned key.- Returns:
this
-
kmsMasterKeyId
@Stability(Stable) public CfnTable.SSESpecificationProperty.Builder kmsMasterKeyId(String kmsMasterKeyId) Sets the value ofCfnTable.SSESpecificationProperty.getKmsMasterKeyId()
- Parameters:
kmsMasterKeyId
- The AWS KMS key that should be used for the AWS KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB keyalias/aws/dynamodb
.- Returns:
this
-
sseType
Sets the value ofCfnTable.SSESpecificationProperty.getSseType()
- Parameters:
sseType
- Server-side encryption type. The only supported value is:.KMS
- Server-side encryption that uses AWS Key Management Service . The key is stored in your account and is managed by AWS KMS ( AWS KMS charges apply).
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTable.SSESpecificationProperty>
- Returns:
- a new instance of
CfnTable.SSESpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-