Class CfnMailManagerRuleSetPropsMixin.S3ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnMailManagerRuleSetPropsMixin.S3ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.S3ActionProperty>
- Enclosing interface:
CfnMailManagerRuleSetPropsMixin.S3ActionProperty
@Stability(Stable)
public static final class CfnMailManagerRuleSetPropsMixin.S3ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.S3ActionProperty>
A builder for
CfnMailManagerRuleSetPropsMixin.S3ActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionFailurePolicy(String actionFailurePolicy) build()Builds the configured instance.Sets the value ofCfnMailManagerRuleSetPropsMixin.S3ActionProperty.getRoleArn()Sets the value ofCfnMailManagerRuleSetPropsMixin.S3ActionProperty.getS3Bucket()Sets the value ofCfnMailManagerRuleSetPropsMixin.S3ActionProperty.getS3Prefix()s3SseKmsKeyId(String s3SseKmsKeyId) Sets the value ofCfnMailManagerRuleSetPropsMixin.S3ActionProperty.getS3SseKmsKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionFailurePolicy
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.S3ActionProperty.Builder actionFailurePolicy(String actionFailurePolicy) - Parameters:
actionFailurePolicy- A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified the bucket has been deleted.- Returns:
this
-
roleArn
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.S3ActionProperty.Builder roleArn(String roleArn) Sets the value ofCfnMailManagerRuleSetPropsMixin.S3ActionProperty.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs for the given bucket.- Returns:
this
-
s3Bucket
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.S3ActionProperty.Builder s3Bucket(String s3Bucket) Sets the value ofCfnMailManagerRuleSetPropsMixin.S3ActionProperty.getS3Bucket()- Parameters:
s3Bucket- The bucket name of the S3 bucket to write to.- Returns:
this
-
s3Prefix
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.S3ActionProperty.Builder s3Prefix(String s3Prefix) Sets the value ofCfnMailManagerRuleSetPropsMixin.S3ActionProperty.getS3Prefix()- Parameters:
s3Prefix- The S3 prefix to use for the write to the s3 bucket.- Returns:
this
-
s3SseKmsKeyId
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.S3ActionProperty.Builder s3SseKmsKeyId(String s3SseKmsKeyId) Sets the value ofCfnMailManagerRuleSetPropsMixin.S3ActionProperty.getS3SseKmsKeyId()- Parameters:
s3SseKmsKeyId- The KMS Key ID to use to encrypt the message in S3.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.S3ActionProperty>- Returns:
- a new instance of
CfnMailManagerRuleSetPropsMixin.S3ActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-