EmailSubscription

class aws_cdk.aws_sns_subscriptions.EmailSubscription(email_address, *, json=None, dead_letter_queue=None, filter_policy=None)

Bases: object

Use an email address as a subscription target.

Email subscriptions require confirmation.

Parameters
  • email_address (str) –

  • json (Optional[bool]) – Indicates if the full notification JSON should be sent to the email address or just the message text. Default: false (Message text)

  • dead_letter_queue (Optional[IQueue]) – Queue to be used as dead letter queue. If not passed no dead letter queue is enabled. Default: - No dead letter queue enabled.

  • filter_policy (Optional[Mapping[str, SubscriptionFilter]]) – The filter policy. Default: - all messages are delivered

Methods

bind(_topic)

Returns a configuration for an email address to subscribe to an SNS topic.

Parameters

_topic (ITopic) –

Return type

TopicSubscriptionConfig