ThrottleSettings
- class aws_cdk.aws_apigatewayv2.ThrottleSettings(*, burst_limit=None, rate_limit=None)
Bases:
object
Container for defining throttling parameters to API stages.
- Parameters:
burst_limit (
Union
[int
,float
,None
]) – The maximum API request rate limit over a time ranging from one to a few seconds. Default: nonerate_limit (
Union
[int
,float
,None
]) – The API request steady-state rate limit (average requests per second over an extended period of time). Default: none
- ExampleMetadata:
infused
Example:
# api: apigwv2.HttpApi apigwv2.HttpStage(self, "Stage", http_api=api, throttle=apigwv2.ThrottleSettings( rate_limit=1000, burst_limit=1000 ), detailed_metrics_enabled=True )
Attributes
- burst_limit
The maximum API request rate limit over a time ranging from one to a few seconds.
- Default:
none
- rate_limit
The API request steady-state rate limit (average requests per second over an extended period of time).
- Default:
none