ThrottlingPerMethod
- class aws_cdk.aws_apigateway.ThrottlingPerMethod(*, method, throttle)
Bases:
object
Represents per-method throttling for a resource.
- Parameters:
method (
Method
) – [disable-awslint:ref-via-interface] The method for which you specify the throttling settings. Default: nonethrottle (
Union
[ThrottleSettings
,Dict
[str
,Any
]]) – Specifies the overall request rate (average requests per second) and burst capacity. Default: none
- 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_apigateway as apigateway # method: apigateway.Method throttling_per_method = apigateway.ThrottlingPerMethod( method=method, throttle=apigateway.ThrottleSettings( burst_limit=123, rate_limit=123 ) )
Attributes
- method
ref-via-interface] The method for which you specify the throttling settings.
- Default:
none
- Type:
[disable-awslint
- throttle
Specifies the overall request rate (average requests per second) and burst capacity.
- Default:
none