Class CfnMailManagerRuleSet.S3ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.S3ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerRuleSet.S3ActionProperty>
- Enclosing interface:
CfnMailManagerRuleSet.S3ActionProperty
@Stability(Stable)
public static final class CfnMailManagerRuleSet.S3ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerRuleSet.S3ActionProperty>
A builder for
CfnMailManagerRuleSet.S3ActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionFailurePolicy(String actionFailurePolicy) Sets the value ofCfnMailManagerRuleSet.S3ActionProperty.getActionFailurePolicy()build()Builds the configured instance.Sets the value ofCfnMailManagerRuleSet.S3ActionProperty.getRoleArn()Sets the value ofCfnMailManagerRuleSet.S3ActionProperty.getS3Bucket()Sets the value ofCfnMailManagerRuleSet.S3ActionProperty.getS3Prefix()s3SseKmsKeyId(String s3SseKmsKeyId) Sets the value ofCfnMailManagerRuleSet.S3ActionProperty.getS3SseKmsKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnMailManagerRuleSet.S3ActionProperty.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. This parameter is required. This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs for the given bucket.- Returns:
this
-
s3Bucket
Sets the value ofCfnMailManagerRuleSet.S3ActionProperty.getS3Bucket()- Parameters:
s3Bucket- The bucket name of the S3 bucket to write to. This parameter is required.- Returns:
this
-
actionFailurePolicy
@Stability(Stable) public CfnMailManagerRuleSet.S3ActionProperty.Builder actionFailurePolicy(String actionFailurePolicy) Sets the value ofCfnMailManagerRuleSet.S3ActionProperty.getActionFailurePolicy()- 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
-
s3Prefix
Sets the value ofCfnMailManagerRuleSet.S3ActionProperty.getS3Prefix()- Parameters:
s3Prefix- The S3 prefix to use for the write to the s3 bucket.- Returns:
this
-
s3SseKmsKeyId
@Stability(Stable) public CfnMailManagerRuleSet.S3ActionProperty.Builder s3SseKmsKeyId(String s3SseKmsKeyId) Sets the value ofCfnMailManagerRuleSet.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<CfnMailManagerRuleSet.S3ActionProperty>- Returns:
- a new instance of
CfnMailManagerRuleSet.S3ActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-