Show / Hide Table of Contents

Interface CfnReceiptRule.IActionProperty

An action that Amazon SES can take when it receives an email on behalf of one or more email addresses or domains that you own.

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

An instance of this data type can represent only one action.

For information about setting up receipt rules, see the Amazon SES Developer Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.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 actionProperty = new ActionProperty {
                 AddHeaderAction = new AddHeaderActionProperty {
                     HeaderName = "headerName",
                     HeaderValue = "headerValue"
                 },
                 BounceAction = new BounceActionProperty {
                     Message = "message",
                     Sender = "sender",
                     SmtpReplyCode = "smtpReplyCode",

                     // the properties below are optional
                     StatusCode = "statusCode",
                     TopicArn = "topicArn"
                 },
                 ConnectAction = new ConnectActionProperty {
                     IamRoleArn = "iamRoleArn",
                     InstanceArn = "instanceArn"
                 },
                 LambdaAction = new LambdaActionProperty {
                     FunctionArn = "functionArn",

                     // the properties below are optional
                     InvocationType = "invocationType",
                     TopicArn = "topicArn"
                 },
                 S3Action = new S3ActionProperty {
                     BucketName = "bucketName",

                     // the properties below are optional
                     IamRoleArn = "iamRoleArn",
                     KmsKeyArn = "kmsKeyArn",
                     ObjectKeyPrefix = "objectKeyPrefix",
                     TopicArn = "topicArn"
                 },
                 SnsAction = new SNSActionProperty {
                     Encoding = "encoding",
                     TopicArn = "topicArn"
                 },
                 StopAction = new StopActionProperty {
                     Scope = "scope",

                     // the properties below are optional
                     TopicArn = "topicArn"
                 },
                 WorkmailAction = new WorkmailActionProperty {
                     OrganizationArn = "organizationArn",

                     // the properties below are optional
                     TopicArn = "topicArn"
                 }
             };

Synopsis

Properties

AddHeaderAction

Adds a header to the received email.

BounceAction

Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).

ConnectAction

The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.

LambdaAction

Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.

S3Action

Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.

SnsAction

Publishes the email content within a notification to Amazon SNS.

StopAction

Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.

WorkmailAction

Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.

Properties

AddHeaderAction

Adds a header to the received email.

object? AddHeaderAction { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-addheaderaction

Type union: either IResolvable or CfnReceiptRule.IAddHeaderActionProperty

BounceAction

Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).

object? BounceAction { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-bounceaction

Type union: either IResolvable or CfnReceiptRule.IBounceActionProperty

ConnectAction

The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.

object? ConnectAction { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-connectaction

Type union: either IResolvable or CfnReceiptRule.IConnectActionProperty

LambdaAction

Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.

object? LambdaAction { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-lambdaaction

Type union: either IResolvable or CfnReceiptRule.ILambdaActionProperty

S3Action

Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.

object? S3Action { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-s3action

Type union: either IResolvable or CfnReceiptRule.IS3ActionProperty

SnsAction

Publishes the email content within a notification to Amazon SNS.

object? SnsAction { get; }
Property Value

object

Remarks

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

Type union: either IResolvable or CfnReceiptRule.ISNSActionProperty

StopAction

Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.

object? StopAction { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-stopaction

Type union: either IResolvable or CfnReceiptRule.IStopActionProperty

WorkmailAction

Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.

object? WorkmailAction { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-workmailaction

Type union: either IResolvable or CfnReceiptRule.IWorkmailActionProperty

Back to top Generated by DocFX