ThrottlePolicy
- class aws_cdk.aws_sns.ThrottlePolicy(*, max_receives_per_second=None)
Bases:
object
Options for customising AWS SNS HTTP/S delivery throttling.
- Parameters:
max_receives_per_second (
Union
[int
,float
,None
]) – The maximum number of deliveries per second, per subscription. Default: - no throttling- ExampleMetadata:
infused
Example:
my_topic = sns.Topic(self, "MyTopic") my_topic.add_subscription( subscriptions.UrlSubscription("https://foobar.com/", delivery_policy=sns.DeliveryPolicy( healthy_retry_policy=sns.HealthyRetryPolicy( min_delay_target=Duration.seconds(5), max_delay_target=Duration.seconds(10), num_retries=6, backoff_function=sns.BackoffFunction.EXPONENTIAL ), throttle_policy=sns.ThrottlePolicy( max_receives_per_second=10 ), request_policy=sns.RequestPolicy( header_content_type="application/json" ) ) ))
Attributes
- max_receives_per_second
The maximum number of deliveries per second, per subscription.
- Default:
no throttling