Class ReceiptRuleActionConfig
Properties for a receipt rule action.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ReceiptRuleActionConfig : Object, IReceiptRuleActionConfig
Syntax (vb)
Public Class ReceiptRuleActionConfig
Inherits Object
Implements IReceiptRuleActionConfig
Remarks
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 receiptRuleActionConfig = new ReceiptRuleActionConfig {
AddHeaderAction = new AddHeaderActionConfig {
HeaderName = "headerName",
HeaderValue = "headerValue"
},
BounceAction = new BounceActionConfig {
Message = "message",
Sender = "sender",
SmtpReplyCode = "smtpReplyCode",
// the properties below are optional
StatusCode = "statusCode",
TopicArn = "topicArn"
},
LambdaAction = new LambdaActionConfig {
FunctionArn = "functionArn",
// the properties below are optional
InvocationType = "invocationType",
TopicArn = "topicArn"
},
S3Action = new S3ActionConfig {
BucketName = "bucketName",
// the properties below are optional
KmsKeyArn = "kmsKeyArn",
ObjectKeyPrefix = "objectKeyPrefix",
TopicArn = "topicArn"
},
SnsAction = new SNSActionConfig {
Encoding = "encoding",
TopicArn = "topicArn"
},
StopAction = new StopActionConfig {
Scope = "scope",
// the properties below are optional
TopicArn = "topicArn"
},
WorkmailAction = new WorkmailActionConfig {
OrganizationArn = "organizationArn",
// the properties below are optional
TopicArn = "topicArn"
}
};
Synopsis
Constructors
Receipt |
Properties
Add |
Adds a header to the received email. |
Bounce |
Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon SNS. |
Lambda |
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS. |
S3Action | Saves the received message to an Amazon S3 bucket and, optionally, publishes a notification to Amazon SNS. |
Sns |
Publishes the email content within a notification to Amazon SNS. |
Stop |
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS. |
Workmail |
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS. |
Constructors
ReceiptRuleActionConfig()
public ReceiptRuleActionConfig()
Properties
AddHeaderAction
Adds a header to the received email.
public IAddHeaderActionConfig AddHeaderAction { get; set; }
Property Value
BounceAction
Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon SNS.
public IBounceActionConfig BounceAction { get; set; }
Property Value
LambdaAction
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
public ILambdaActionConfig LambdaAction { get; set; }
Property Value
S3Action
Saves the received message to an Amazon S3 bucket and, optionally, publishes a notification to Amazon SNS.
public IS3ActionConfig S3Action { get; set; }
Property Value
SnsAction
Publishes the email content within a notification to Amazon SNS.
public ISNSActionConfig SnsAction { get; set; }
Property Value
StopAction
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
public IStopActionConfig StopAction { get; set; }
Property Value
WorkmailAction
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
public IWorkmailActionConfig WorkmailAction { get; set; }
Property Value