Skip to content
v2.277.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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ses as ses

bounce_action_config = ses.BounceActionConfig(
    message="message",
    sender="sender",
    smtp_reply_code="smtpReplyCode",

    # the properties below are optional
    status_code="statusCode",
    topic_arn="topicArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ses.*;

BounceActionConfig bounceActionConfig = BounceActionConfig.builder()
        .message("message")
        .sender("sender")
        .smtpReplyCode("smtpReplyCode")

        // the properties below are optional
        .statusCode("statusCode")
        .topicArn("topicArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 bounceActionConfig = new BounceActionConfig {
    Message = "message",
    Sender = "sender",
    SmtpReplyCode = "smtpReplyCode",

    // the properties below are optional
    StatusCode = "statusCode",
    TopicArn = "topicArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

bounceActionConfig := &BounceActionConfig{
	Message: jsii.String("message"),
	Sender: jsii.String("sender"),
	SmtpReplyCode: jsii.String("smtpReplyCode"),

	// the properties below are optional
	StatusCode: jsii.String("statusCode"),
	TopicArn: jsii.String("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.