Class CfnMailManagerRuleSet.SnsActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.SnsActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerRuleSet.SnsActionProperty>
- Enclosing interface:
CfnMailManagerRuleSet.SnsActionProperty
@Stability(Stable)
public static final class CfnMailManagerRuleSet.SnsActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerRuleSet.SnsActionProperty>
A builder for
CfnMailManagerRuleSet.SnsActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionFailurePolicy(String actionFailurePolicy) Sets the value ofCfnMailManagerRuleSet.SnsActionProperty.getActionFailurePolicy()build()Builds the configured instance.Sets the value ofCfnMailManagerRuleSet.SnsActionProperty.getEncoding()payloadType(String payloadType) Sets the value ofCfnMailManagerRuleSet.SnsActionProperty.getPayloadType()Sets the value ofCfnMailManagerRuleSet.SnsActionProperty.getRoleArn()Sets the value ofCfnMailManagerRuleSet.SnsActionProperty.getTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnMailManagerRuleSet.SnsActionProperty.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM Role to use while writing to Amazon SNS. This parameter is required. This role must have access to thesns:PublishAPI for the given topic.- Returns:
this
-
topicArn
Sets the value ofCfnMailManagerRuleSet.SnsActionProperty.getTopicArn()- Parameters:
topicArn- The Amazon Resource Name (ARN) of the Amazon SNS Topic to which notification for the email received will be published. This parameter is required.- Returns:
this
-
actionFailurePolicy
@Stability(Stable) public CfnMailManagerRuleSet.SnsActionProperty.Builder actionFailurePolicy(String actionFailurePolicy) Sets the value ofCfnMailManagerRuleSet.SnsActionProperty.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, specified SNS topic has been deleted or the role lacks necessary permissions to call thesns:PublishAPI.- Returns:
this
-
encoding
Sets the value ofCfnMailManagerRuleSet.SnsActionProperty.getEncoding()- Parameters:
encoding- The encoding to use for the email within the Amazon SNS notification. The default value isUTF-8. UseBASE64if you need to preserve all special characters, especially when the original message uses a different encoding format.- Returns:
this
-
payloadType
@Stability(Stable) public CfnMailManagerRuleSet.SnsActionProperty.Builder payloadType(String payloadType) Sets the value ofCfnMailManagerRuleSet.SnsActionProperty.getPayloadType()- Parameters:
payloadType- The expected payload type within the Amazon SNS notification.CONTENTattempts to publish the full email content with 20KB of headers content.HEADERSextracts up to 100KB of header content to include in the notification, email content will not be included to the notification. The default value isCONTENT.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMailManagerRuleSet.SnsActionProperty>- Returns:
- a new instance of
CfnMailManagerRuleSet.SnsActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-