Skip to content
v2.274.0

BounceActionConfig Struct ​

BoundAction configuration.

Example ​

ts
// 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 bounceActionConfig: ses.BounceActionConfig = {
  message: 'message',
  sender: 'sender',
  smtpReplyCode: 'smtpReplyCode',

  // the properties below are optional
  statusCode: 'statusCode',
  topicArn: 'topicArn',
};

Properties ​

messagestringmessagestrmessageStringMessagestringMessage*stringrequired#
Human-readable text to include in the bounce message.
senderstringsenderstrsenderStringSenderstringSender*stringrequired#
The email address of the sender of the bounced email.

This is the address that the bounce message is sent from.

smtpReplyCodestringsmtp_reply_codestrsmtpReplyCodeStringSmtpReplyCodestringSmtpReplyCode*stringrequired#
The SMTP reply code, as defined by RFC 5321.
statusCodeoptionalstringstatus_codeoptionalstrstatusCodeoptionalStringStatusCodeoptionalstringStatusCodeoptional*string#
The SMTP enhanced status code, as defined by RFC 3463.

Default: No status code.

topicArnoptionalstringtopic_arnoptionalstrtopicArnoptionalStringTopicArnoptionalstringTopicArnoptional*string#
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken.

Default: No notification is sent to SNS.