Bounce

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

Bases: object

Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon 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_actions as ses_actions
from aws_cdk import aws_sns as sns

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

bounce = ses_actions.Bounce(
    sender="sender",
    template=bounce_template,

    # the properties below are optional
    topic=topic
)
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

Methods

bind(_rule)

Returns the receipt rule action specification.

Parameters:

_rule (IReceiptRule) –

Return type:

ReceiptRuleActionConfig