interface ActionProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.SES.CfnReceiptRule.ActionProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsses#CfnReceiptRule_ActionProperty |
![]() | software.amazon.awscdk.services.ses.CfnReceiptRule.ActionProperty |
![]() | aws_cdk.aws_ses.CfnReceiptRule.ActionProperty |
![]() | aws-cdk-lib » aws_ses » 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.
An instance of this data type can represent only one action.
For information about setting up receipt rules, see the Amazon SES Developer Guide .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
const actionProperty: ses.CfnReceiptRule.ActionProperty = {
addHeaderAction: {
headerName: 'headerName',
headerValue: 'headerValue',
},
bounceAction: {
message: 'message',
sender: 'sender',
smtpReplyCode: 'smtpReplyCode',
// the properties below are optional
statusCode: 'statusCode',
topicArn: 'topicArn',
},
connectAction: {
iamRoleArn: 'iamRoleArn',
instanceArn: 'instanceArn',
},
lambdaAction: {
functionArn: 'functionArn',
// the properties below are optional
invocationType: 'invocationType',
topicArn: 'topicArn',
},
s3Action: {
bucketName: 'bucketName',
// the properties below are optional
iamRoleArn: 'iamRoleArn',
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 | IResolvable | Add | Adds a header to the received email. |
bounce | IResolvable | Bounce | Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS). |
connect | IResolvable | Connect | |
lambda | IResolvable | Lambda | Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS. |
s3 | IResolvable | S3 | Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS. |
sns | IResolvable | SNSAction | Publishes the email content within a notification to Amazon SNS. |
stop | IResolvable | Stop | Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS. |
workmail | IResolvable | Workmail | Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS. |
addHeaderAction?
Type:
IResolvable
|
Add
(optional)
Adds a header to the received email.
bounceAction?
Type:
IResolvable
|
Bounce
(optional)
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?
Type:
IResolvable
|
Connect
(optional)
lambdaAction?
Type:
IResolvable
|
Lambda
(optional)
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
s3Action?
Type:
IResolvable
|
S3
(optional)
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
snsAction?
Type:
IResolvable
|
SNSAction
(optional)
Publishes the email content within a notification to Amazon SNS.
stopAction?
Type:
IResolvable
|
Stop
(optional)
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
workmailAction?
Type:
IResolvable
|
Workmail
(optional)
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.