BounceProps

class aws_cdk.aws_ses_actions.BounceProps(*, sender, template, topic=None)

Bases: object

Construction properties for a bounce action.

Parameters:
  • sender (str) – The email address of the sender of the bounced email. This is the address from which the bounce message will be sent.

  • template (BounceTemplate) – The template containing the message, reply code and status code.

  • topic (Optional[ITopic]) – The SNS topic to notify when the bounce action is taken. Default: no notification

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_actions as ses_actions
from aws_cdk import aws_sns as sns

# bounce_template: ses_actions.BounceTemplate
# topic: sns.Topic

bounce_props = ses_actions.BounceProps(
    sender="sender",
    template=bounce_template,

    # the properties below are optional
    topic=topic
)

Attributes

sender

The email address of the sender of the bounced email.

This is the address from which the bounce message will be sent.

template

The template containing the message, reply code and status code.

topic

The SNS topic to notify when the bounce action is taken.

Default:

no notification