Bases: object
cache_data_encrypted (Optional
[bool
]) â Indicates whether the cached responses are encrypted. Default: false
cache_ttl (Optional
[Duration
]) â Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. Default: Duration.minutes(5)
caching_enabled (Optional
[bool
]) â Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. Default: - Caching is Disabled.
data_trace_enabled (Optional
[bool
]) â Specifies whether data trace logging is enabled for this method. When enabled, API gateway will log the full API requests and responses. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you donât enable this feature for production APIs. Default: false
logging_level (Optional
[MethodLoggingLevel
]) â Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. Default: - Off
metrics_enabled (Optional
[bool
]) â Specifies whether Amazon CloudWatch metrics are enabled for this method. Default: false
throttling_burst_limit (Union
[int
, float
, None
]) â Specifies the throttling burst limit. The total rate of all requests in your AWS account is limited to 5,000 requests. Default: - No additional restriction.
throttling_rate_limit (Union
[int
, float
, None
]) â Specifies the throttling rate limit. The total rate of all requests in your AWS account is limited to 10,000 requests per second (rps). Default: - No additional restriction.
infused
Example:
api = apigateway.RestApi(self, "books") deployment = apigateway.Deployment(self, "my-deployment", api=api) stage = apigateway.Stage(self, "my-stage", deployment=deployment, method_options={ "/*/*": apigateway.MethodDeploymentOptions( # This special path applies to all resource paths and all HTTP methods throttling_rate_limit=100, throttling_burst_limit=200) } )
Attributes
Indicates whether the cached responses are encrypted.
false
Specifies the time to live (TTL), in seconds, for cached responses.
The higher the TTL, the longer the response will be cached.
Duration.minutes(5)
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html
Specifies whether responses should be cached and returned for requests.
A cache cluster must be enabled on the stage for responses to be cached.
Caching is Disabled.
Specifies whether data trace logging is enabled for this method.
When enabled, API gateway will log the full API requests and responses. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you donât enable this feature for production APIs.
false
Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs.
Off
Specifies whether Amazon CloudWatch metrics are enabled for this method.
false
Specifies the throttling burst limit.
The total rate of all requests in your AWS account is limited to 5,000 requests.
No additional restriction.
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html
Specifies the throttling rate limit.
The total rate of all requests in your AWS account is limited to 10,000 requests per second (rps).
No additional restriction.
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4