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 .
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 | 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. |
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
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).
object? BounceAction { get; }
Property Value
Remarks
ConnectAction
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.
object? ConnectAction { get; }
Property Value
Remarks
LambdaAction
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
object? LambdaAction { get; }
Property Value
Remarks
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
Remarks
SnsAction
Publishes the email content within a notification to Amazon SNS.
object? SnsAction { get; }
Property Value
Remarks
StopAction
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
object? StopAction { get; }
Property Value
Remarks
WorkmailAction
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
object? WorkmailAction { get; }