Class CfnCanary.S3EncryptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.synthetics.CfnCanary.S3EncryptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCanary.S3EncryptionProperty>
- Enclosing interface:
CfnCanary.S3EncryptionProperty
@Stability(Stable)
public static final class CfnCanary.S3EncryptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCanary.S3EncryptionProperty>
A builder for
CfnCanary.S3EncryptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionMode(String encryptionMode) Sets the value ofCfnCanary.S3EncryptionProperty.getEncryptionMode()Sets the value ofCfnCanary.S3EncryptionProperty.getKmsKeyArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionMode
@Stability(Stable) public CfnCanary.S3EncryptionProperty.Builder encryptionMode(String encryptionMode) Sets the value ofCfnCanary.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 KMS key.If you omit this parameter, an AWS -managed AWS KMS key is used.
- Returns:
this
-
kmsKeyArn
Sets the value ofCfnCanary.S3EncryptionProperty.getKmsKeyArn()- Parameters:
kmsKeyArn- The ARN of the customer-managed AWS KMS key to use, if you specifySSE-KMSforEncryptionMode.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCanary.S3EncryptionProperty>- Returns:
- a new instance of
CfnCanary.S3EncryptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-