Class CfnBucket.EncryptionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.EncryptionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.EncryptionConfigurationProperty>
- Enclosing interface:
CfnBucket.EncryptionConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.EncryptionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.EncryptionConfigurationProperty>
A builder for
CfnBucket.EncryptionConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.replicaKmsKeyId
(String replicaKmsKeyId) Sets the value ofCfnBucket.EncryptionConfigurationProperty.getReplicaKmsKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
replicaKmsKeyId
@Stability(Stable) public CfnBucket.EncryptionConfigurationProperty.Builder replicaKmsKeyId(String replicaKmsKeyId) Sets the value ofCfnBucket.EncryptionConfigurationProperty.getReplicaKmsKeyId()
- Parameters:
replicaKmsKeyId
- Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. This parameter is required. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see Asymmetric keys in AWS KMS in the AWS Key Management Service Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.EncryptionConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.EncryptionConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-