Class CfnBucket.MetadataTableEncryptionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.MetadataTableEncryptionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.MetadataTableEncryptionConfigurationProperty>
- Enclosing interface:
CfnBucket.MetadataTableEncryptionConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.MetadataTableEncryptionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.MetadataTableEncryptionConfigurationProperty>
A builder for
CfnBucket.MetadataTableEncryptionConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBucket.MetadataTableEncryptionConfigurationProperty.getKmsKeyArn()
sseAlgorithm
(String sseAlgorithm) Sets the value ofCfnBucket.MetadataTableEncryptionConfigurationProperty.getSseAlgorithm()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sseAlgorithm
@Stability(Stable) public CfnBucket.MetadataTableEncryptionConfigurationProperty.Builder sseAlgorithm(String sseAlgorithm) Sets the value ofCfnBucket.MetadataTableEncryptionConfigurationProperty.getSseAlgorithm()
- Parameters:
sseAlgorithm
- The encryption type specified for a metadata table. This parameter is required. To specify server-side encryption with AWS Key Management Service ( AWS KMS ) keys (SSE-KMS), use theaws:kms
value. To specify server-side encryption with Amazon S3 managed keys (SSE-S3), use theAES256
value.- Returns:
this
-
kmsKeyArn
@Stability(Stable) public CfnBucket.MetadataTableEncryptionConfigurationProperty.Builder kmsKeyArn(String kmsKeyArn) Sets the value ofCfnBucket.MetadataTableEncryptionConfigurationProperty.getKmsKeyArn()
- Parameters:
kmsKeyArn
- If server-side encryption with AWS Key Management Service ( AWS KMS ) keys (SSE-KMS) is specified, you must also specify the KMS key Amazon Resource Name (ARN). You must specify a customer-managed KMS key that's located in the same Region as the general purpose bucket that corresponds to the metadata table configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.MetadataTableEncryptionConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.MetadataTableEncryptionConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-