AwsApiGatewayMethodSettings
import type { AwsApiGatewayMethodSettings } from "https://aws-api.deno.dev/v0.4/services/securityhub.ts?docs=full";
Defines settings for a method for the stage.
§Properties
Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response is cached.
Indicates whether responses are cached and returned for requests. For responses to be cached, a cache cluster must be enabled on the stage.
Indicates whether data trace logging is enabled for the method. Data trace logging affects the log entries that are pushed to CloudWatch Logs.
The HTTP method. You can use an asterisk (*) as a wildcard to apply method settings to multiple methods.
The logging level for this method. The logging level affects the log entries that are pushed to CloudWatch Logs.
If the logging level is ERROR
, then the logs only include error-level entries.
If the logging level is INFO
, then the logs include both ERROR
events and extra informational events.
Valid values: OFF
| ERROR
| INFO
Indicates whether CloudWatch metrics are enabled for the method.
Indicates whether authorization is required for a cache invalidation request.
The resource path for this method. Forward slashes (/) are encoded as ~1 . 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 (/). You can use an asterisk (*) as a wildcard to apply method settings to multiple methods.