BounceActionConfig

class aws_cdk.aws_ses.BounceActionConfig(*, message, sender, smtp_reply_code, status_code=None, topic_arn=None)

Bases: object

BoundAction configuration.

Parameters:
  • message (str) – Human-readable text to include in the bounce message.

  • sender (str) – The email address of the sender of the bounced email. This is the address that the bounce message is sent from.

  • smtp_reply_code (str) – The SMTP reply code, as defined by RFC 5321.

  • status_code (Optional[str]) – The SMTP enhanced status code, as defined by RFC 3463. Default: - No status code.

  • topic_arn (Optional[str]) – 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.

ExampleMetadata:

fixture=_generated

Example:

# 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"
)

Attributes

message

Human-readable text to include in the bounce message.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html#cfn-ses-receiptrule-bounceaction-message

sender

The email address of the sender of the bounced email.

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

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html#cfn-ses-receiptrule-bounceaction-sender

smtp_reply_code

The SMTP reply code, as defined by RFC 5321.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html#cfn-ses-receiptrule-bounceaction-smtpreplycode

status_code

The SMTP enhanced status code, as defined by RFC 3463.

Default:
  • No status code.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html#cfn-ses-receiptrule-bounceaction-statuscode

topic_arn

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.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html#cfn-ses-receiptrule-bounceaction-topicarn