SnsActionProperty Struct
The action to publish the email content to an Amazon SNS topic.
When executed, this action will send the email as a notification to the specified SNS topic.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
const snsActionProperty: ses.CfnMailManagerRuleSet.SnsActionProperty = {
roleArn: 'roleArn',
topicArn: 'topicArn',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
encoding: 'encoding',
payloadType: 'payloadType',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ses as ses
sns_action_property = ses.CfnMailManagerRuleSet.SnsActionProperty(
role_arn="roleArn",
topic_arn="topicArn",
# the properties below are optional
action_failure_policy="actionFailurePolicy",
encoding="encoding",
payload_type="payloadType"
)
// 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();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SES;
var snsActionProperty = new SnsActionProperty {
RoleArn = "roleArn",
TopicArn = "topicArn",
// the properties below are optional
ActionFailurePolicy = "actionFailurePolicy",
Encoding = "encoding",
PayloadType = "payloadType"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
snsActionProperty := &SnsActionProperty{
RoleArn: jsii.String("roleArn"),
TopicArn: jsii.String("topicArn"),
// the properties below are optional
ActionFailurePolicy: jsii.String("actionFailurePolicy"),
Encoding: jsii.String("encoding"),
PayloadType: jsii.String("payloadType"),
}
Properties
actionFailurePolicyoptionalstringaction_failure_policyoptionalstractionFailurePolicyoptionalStringActionFailurePolicyoptionalstringActionFailurePolicyoptional*string #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:Publish API.
encodingoptionalstringencodingoptionalstrencodingoptionalStringEncodingoptionalstringEncodingoptional*string #The default value is UTF-8 . Use BASE64 if you need to preserve all special characters, especially when the original message uses a different encoding format.
payloadTypeoptionalstringpayload_typeoptionalstrpayloadTypeoptionalStringPayloadTypeoptionalstringPayloadTypeoptional*string #notes
CONTENT attempts to publish the full email content with 20KB of headers content. HEADERS extracts up to 100KB of header content to include in the notification, email content will not be included to the notification. The default value is CONTENT .
This role must have access to the sns:Publish API for the given topic.