Class CfnMailManagerRuleSetPropsMixin.SnsActionProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ses.mixins.CfnMailManagerRuleSetPropsMixin.SnsActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.SnsActionProperty>
- Enclosing interface:
CfnMailManagerRuleSetPropsMixin.SnsActionProperty
@Stability(Stable)
public static final class CfnMailManagerRuleSetPropsMixin.SnsActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.SnsActionProperty>
A builder for
CfnMailManagerRuleSetPropsMixin.SnsActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionFailurePolicy(String actionFailurePolicy) build()Builds the configured instance.Sets the value ofCfnMailManagerRuleSetPropsMixin.SnsActionProperty.getEncoding()payloadType(String payloadType) Sets the value ofCfnMailManagerRuleSetPropsMixin.SnsActionProperty.getPayloadType()Sets the value ofCfnMailManagerRuleSetPropsMixin.SnsActionProperty.getRoleArn()Sets the value ofCfnMailManagerRuleSetPropsMixin.SnsActionProperty.getTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionFailurePolicy
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.SnsActionProperty.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, specified SNS topic has been deleted or the role lacks necessary permissions to call thesns:PublishAPI.- Returns:
this
-
encoding
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.SnsActionProperty.Builder encoding(String encoding) Sets the value ofCfnMailManagerRuleSetPropsMixin.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 CfnMailManagerRuleSetPropsMixin.SnsActionProperty.Builder payloadType(String payloadType) Sets the value ofCfnMailManagerRuleSetPropsMixin.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
-
roleArn
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.SnsActionProperty.Builder roleArn(String roleArn) Sets the value ofCfnMailManagerRuleSetPropsMixin.SnsActionProperty.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM Role to use while writing to Amazon SNS. This role must have access to thesns:PublishAPI for the given topic.- Returns:
this
-
topicArn
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.SnsActionProperty.Builder topicArn(String topicArn) Sets the value ofCfnMailManagerRuleSetPropsMixin.SnsActionProperty.getTopicArn()- Parameters:
topicArn- The Amazon Resource Name (ARN) of the Amazon SNS Topic to which notification for the email received will be published.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.SnsActionProperty>- Returns:
- a new instance of
CfnMailManagerRuleSetPropsMixin.SnsActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-