Class CfnReceiptRule.ActionProperty
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.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ActionProperty : Object, CfnReceiptRule.IActionProperty
Syntax (vb)
Public Class ActionProperty
Inherits Object
Implements 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 .
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"
},
LambdaAction = new LambdaActionProperty {
FunctionArn = "functionArn",
// the properties below are optional
InvocationType = "invocationType",
TopicArn = "topicArn"
},
S3Action = new S3ActionProperty {
BucketName = "bucketName",
// the properties below are optional
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
Constructors
ActionProperty() |
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). |
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 Amazon SNS. |
Constructors
ActionProperty()
public ActionProperty()
Properties
AddHeaderAction
Adds a header to the received email.
public object AddHeaderAction { get; set; }
Property Value
System.Object
Remarks
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).
public object BounceAction { get; set; }
Property Value
System.Object
Remarks
LambdaAction
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
public object LambdaAction { get; set; }
Property Value
System.Object
Remarks
S3Action
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
public object S3Action { get; set; }
Property Value
System.Object
Remarks
SnsAction
Publishes the email content within a notification to Amazon SNS.
public object SnsAction { get; set; }
Property Value
System.Object
Remarks
StopAction
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
public object StopAction { get; set; }
Property Value
System.Object
Remarks
WorkmailAction
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.
public object WorkmailAction { get; set; }
Property Value
System.Object