Complete the code to set the maximum requests per second in API Gateway throttling.
api_gateway = AwsApiGateway()
api_gateway.throttling.rate_limit = [1]The rate_limit property expects a numeric value representing the maximum requests per second allowed.
Complete the code to configure burst limit in API Gateway throttling settings.
api_gateway.throttling.burst_limit = [1]The burst_limit is a numeric value defining the maximum number of requests allowed in a short burst.
Fix the error in the code to correctly apply throttling settings to a stage in API Gateway.
stage = api_gateway.create_stage('prod') stage.[1] = api_gateway.throttling
The correct property name to assign throttling settings is throttling_settings.
Fill both blanks to create a throttling policy with rate and burst limits in API Gateway.
throttle_policy = {
'rateLimit': [1],
'burstLimit': [2]
}The rateLimit is set to 1000 requests per second, and burstLimit is set to 500 requests in a burst.
Fill all three blanks to define a usage plan with throttling and quota limits in API Gateway.
usage_plan = {
'throttle': {
'rateLimit': [1],
'burstLimit': [2]
},
'quota': {
'limit': [3],
'period': 'MONTH'
}
}The usage plan sets burstLimit to 500, rateLimit to 1000 requests per second, and a monthly quota limit of 100000 requests.