interface ReceiptRuleActionConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SES.ReceiptRuleActionConfig |
Java | software.amazon.awscdk.services.ses.ReceiptRuleActionConfig |
Python | aws_cdk.aws_ses.ReceiptRuleActionConfig |
TypeScript (source) | @aws-cdk/aws-ses » ReceiptRuleActionConfig |
Obtainable from
Add
.bind()
, Bounce
.bind()
, Lambda
.bind()
, S3
.bind()
, Sns
.bind()
, Stop
.bind()
Properties for a receipt rule action.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ses from '@aws-cdk/aws-ses';
const receiptRuleActionConfig: ses.ReceiptRuleActionConfig = {
addHeaderAction: {
headerName: 'headerName',
headerValue: 'headerValue',
},
bounceAction: {
message: 'message',
sender: 'sender',
smtpReplyCode: 'smtpReplyCode',
// the properties below are optional
statusCode: 'statusCode',
topicArn: 'topicArn',
},
lambdaAction: {
functionArn: 'functionArn',
// the properties below are optional
invocationType: 'invocationType',
topicArn: 'topicArn',
},
s3Action: {
bucketName: 'bucketName',
// the properties below are optional
kmsKeyArn: 'kmsKeyArn',
objectKeyPrefix: 'objectKeyPrefix',
topicArn: 'topicArn',
},
snsAction: {
encoding: 'encoding',
topicArn: 'topicArn',
},
stopAction: {
scope: 'scope',
// the properties below are optional
topicArn: 'topicArn',
},
workmailAction: {
organizationArn: 'organizationArn',
// the properties below are optional
topicArn: 'topicArn',
},
};
Properties
Name | Type | Description |
---|---|---|
add | Add | Adds a header to the received email. |
bounce | Bounce | Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon SNS. |
lambda | Lambda | Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS. |
s3 | S3 | Saves the received message to an Amazon S3 bucket and, optionally, publishes a notification to Amazon SNS. |
sns | SNSAction | Publishes the email content within a notification to Amazon SNS. |
stop | Stop | Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS. |
workmail | Workmail | Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS. |
addHeaderAction?
Type:
Add
(optional)
Adds a header to the received email.
bounceAction?
Type:
Bounce
(optional)
Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon SNS.
lambdaAction?
Type:
Lambda
(optional)
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
s3Action?
Type:
S3
(optional)
Saves the received message to an Amazon S3 bucket and, optionally, publishes a notification to Amazon SNS.
snsAction?
Type:
SNSAction
(optional)
Publishes the email content within a notification to Amazon SNS.
stopAction?
Type:
Stop
(optional)
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
workmailAction?
Type:
Workmail
(optional)
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.