Interface CfnMailManagerRuleSet.SnsActionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnMailManagerRuleSet.SnsActionProperty.Jsii$Proxy
- Enclosing class:
CfnMailManagerRuleSet
When executed, this action will send the email as a notification to the specified SNS topic.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ses.*;
SnsActionProperty snsActionProperty = SnsActionProperty.builder()
.roleArn("roleArn")
.topicArn("topicArn")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.encoding("encoding")
.payloadType("payloadType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnMailManagerRuleSet.SnsActionPropertystatic final classAn implementation forCfnMailManagerRuleSet.SnsActionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringA policy that states what to do in the case of failure.default StringThe encoding to use for the email within the Amazon SNS notification.default StringThe expected payload type within the Amazon SNS notification.The Amazon Resource Name (ARN) of the IAM Role to use while writing to Amazon SNS.The Amazon Resource Name (ARN) of the Amazon SNS Topic to which notification for the email received will be published.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRoleArn
The Amazon Resource Name (ARN) of the IAM Role to use while writing to Amazon SNS.This role must have access to the
sns:PublishAPI for the given topic.- See Also:
-
getTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS Topic to which notification for the email received will be published.- See Also:
-
getActionFailurePolicy
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 the
sns:PublishAPI.- See Also:
-
getEncoding
The encoding to use for the email within the Amazon SNS notification.The default value is
UTF-8. UseBASE64if you need to preserve all special characters, especially when the original message uses a different encoding format.- See Also:
-
getPayloadType
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.- See Also:
-
builder
-