Show / Hide Table of Contents

Interface CfnMailManagerRuleSet.ISnsActionProperty

The action to publish the email content to an Amazon SNS topic.

Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnMailManagerRuleSet.ISnsActionProperty
Syntax (vb)
Public Interface CfnMailManagerRuleSet.ISnsActionProperty
Remarks

When executed, this action will send the email as a notification to the specified SNS topic.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-snsaction.html

ExampleMetadata: fixture=_generated

Examples
// 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"
             };

Synopsis

Properties

ActionFailurePolicy

A policy that states what to do in the case of failure.

Encoding

The encoding to use for the email within the Amazon SNS notification.

PayloadType

The expected payload type within the Amazon SNS notification.

RoleArn

The Amazon Resource Name (ARN) of the IAM Role to use while writing to Amazon SNS.

TopicArn

The Amazon Resource Name (ARN) of the Amazon SNS Topic to which notification for the email received will be published.

Properties

ActionFailurePolicy

A policy that states what to do in the case of failure.

string? ActionFailurePolicy { get; }
Property Value

string

Remarks

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-snsaction.html#cfn-ses-mailmanagerruleset-snsaction-actionfailurepolicy

Encoding

The encoding to use for the email within the Amazon SNS notification.

string? Encoding { get; }
Property Value

string

Remarks

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-snsaction.html#cfn-ses-mailmanagerruleset-snsaction-encoding

PayloadType

The expected payload type within the Amazon SNS notification.

string? PayloadType { get; }
Property Value

string

Remarks

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-snsaction.html#cfn-ses-mailmanagerruleset-snsaction-payloadtype

RoleArn

The Amazon Resource Name (ARN) of the IAM Role to use while writing to Amazon SNS.

string RoleArn { get; }
Property Value

string

Remarks

This role must have access to the sns:Publish API for the given topic.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-snsaction.html#cfn-ses-mailmanagerruleset-snsaction-rolearn

TopicArn

The Amazon Resource Name (ARN) of the Amazon SNS Topic to which notification for the email received will be published.

string TopicArn { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-snsaction.html#cfn-ses-mailmanagerruleset-snsaction-topicarn

Back to top Generated by DocFX