Deployment Method Setting
The `MethodSetting`
property type configures settings for all methods in a stage. The `MethodSettings`
property of the Amazon API Gateway Deployment StageDescription property type contains a list of `MethodSetting`
property types.
Constructors
Properties
Specifies whether the cached responses are encrypted.
Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
The HTTP method.
Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are `OFF`
, `ERROR`
, and `INFO`
. Choose `ERROR`
to write only error-level entries to CloudWatch Logs, or choose `INFO`
to include all `ERROR`
events as well as extra informational events.
Specifies whether Amazon CloudWatch metrics are enabled for this method.
The resource path for this method. Forward slashes (`/`
) are encoded as `~1`
and the initial slash must include a forward slash. For example, the path value `/resource/subresource`
must be encoded as `/~1resource~1subresource`
. To specify the root path, use only a slash (`/`
).
Specifies the throttling burst limit.
Specifies the throttling rate limit.