SmsSubscriptionProps

class aws_cdk.aws_sns_subscriptions.SmsSubscriptionProps(*, dead_letter_queue=None, filter_policy=None)

Bases: aws_cdk.aws_sns_subscriptions.SubscriptionProps

Options for SMS subscriptions.

Parameters
  • 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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_sns as sns
import aws_cdk.aws_sns_subscriptions as sns_subscriptions
import aws_cdk.aws_sqs as sqs

# queue is of type Queue
# subscription_filter is of type SubscriptionFilter

sms_subscription_props = sns_subscriptions.SmsSubscriptionProps(
    dead_letter_queue=queue,
    filter_policy={
        "filter_policy_key": subscription_filter
    }
)

Attributes

dead_letter_queue

Queue to be used as dead letter queue.

If not passed no dead letter queue is enabled.

Default
  • No dead letter queue enabled.

Return type

Optional[IQueue]

filter_policy

The filter policy.

Default
  • all messages are delivered

Return type

Optional[Mapping[str, SubscriptionFilter]]