public static final class CfnCanary.S3EncryptionProperty.Builder
extends java.lang.Object
CfnCanary.S3EncryptionProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnCanary.S3EncryptionProperty |
build()
Builds the configured instance.
|
CfnCanary.S3EncryptionProperty.Builder |
encryptionMode(java.lang.String encryptionMode)
Sets the value of
CfnCanary.S3EncryptionProperty.getEncryptionMode() |
CfnCanary.S3EncryptionProperty.Builder |
kmsKeyArn(java.lang.String kmsKeyArn)
Sets the value of
CfnCanary.S3EncryptionProperty.getKmsKeyArn() |
public CfnCanary.S3EncryptionProperty.Builder encryptionMode(java.lang.String encryptionMode)
CfnCanary.S3EncryptionProperty.getEncryptionMode()
encryptionMode
- The encryption method to use for artifacts created by this canary.
Specify SSE_S3
to use server-side encryption (SSE) with an Amazon S3-managed key. Specify SSE-KMS
to use server-side encryption with a customer-managed AWS KMS key.
If you omit this parameter, an AWS -managed AWS KMS key is used.
this
public CfnCanary.S3EncryptionProperty.Builder kmsKeyArn(java.lang.String kmsKeyArn)
CfnCanary.S3EncryptionProperty.getKmsKeyArn()
kmsKeyArn
- The ARN of the customer-managed AWS KMS key to use, if you specify `SSE-KMS` for `EncryptionMode`.this
public CfnCanary.S3EncryptionProperty build()
CfnCanary.S3EncryptionProperty
java.lang.NullPointerException
- if any required attribute was not provided