Class CfnCanaryPropsMixin.S3EncryptionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.synthetics.CfnCanaryPropsMixin.S3EncryptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCanaryPropsMixin.S3EncryptionProperty>
- Enclosing interface:
CfnCanaryPropsMixin.S3EncryptionProperty
@Stability(Stable)
public static final class CfnCanaryPropsMixin.S3EncryptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCanaryPropsMixin.S3EncryptionProperty>
A builder for
CfnCanaryPropsMixin.S3EncryptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionMode(String encryptionMode) Sets the value ofCfnCanaryPropsMixin.S3EncryptionProperty.getEncryptionMode()Sets the value ofCfnCanaryPropsMixin.S3EncryptionProperty.getKmsKeyArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionMode
@Stability(Stable) public CfnCanaryPropsMixin.S3EncryptionProperty.Builder encryptionMode(String encryptionMode) Sets the value ofCfnCanaryPropsMixin.S3EncryptionProperty.getEncryptionMode()- Parameters:
encryptionMode- The encryption method to use for artifacts created by this canary. SpecifySSE_S3to use server-side encryption (SSE) with an Amazon S3-managed key. SpecifySSE-KMSto use server-side encryption with a customer-managed AWS key.If you omit this parameter, an AWS -managed AWS key is used.
- Returns:
this
-
kmsKeyArn
@Stability(Stable) public CfnCanaryPropsMixin.S3EncryptionProperty.Builder kmsKeyArn(String kmsKeyArn) Sets the value ofCfnCanaryPropsMixin.S3EncryptionProperty.getKmsKeyArn()- Parameters:
kmsKeyArn- The ARN of the customer-managed AWS key to use, if you specifySSE-KMSforEncryptionMode.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCanaryPropsMixin.S3EncryptionProperty>- Returns:
- a new instance of
CfnCanaryPropsMixin.S3EncryptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-