Seleccione sus preferencias de cookies

Usamos cookies esenciales y herramientas similares que son necesarias para proporcionar nuestro sitio y nuestros servicios. Usamos cookies de rendimiento para recopilar estadísticas anónimas para que podamos entender cómo los clientes usan nuestro sitio y hacer mejoras. Las cookies esenciales no se pueden desactivar, pero puede hacer clic en “Personalizar” o “Rechazar” para rechazar las cookies de rendimiento.

Si está de acuerdo, AWS y los terceros aprobados también utilizarán cookies para proporcionar características útiles del sitio, recordar sus preferencias y mostrar contenido relevante, incluida publicidad relevante. Para aceptar o rechazar todas las cookies no esenciales, haga clic en “Aceptar” o “Rechazar”. Para elegir opciones más detalladas, haga clic en “Personalizar”.

MethodSetting

Modo de enfoque
MethodSetting - Amazon API Gateway
Esta página no se ha traducido a su idioma. Solicitar traducción

Specifies the method setting properties.

Contents

cacheDataEncrypted

Specifies whether the cached responses are encrypted.

Type: Boolean

Required: No

cacheTtlInSeconds

Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.

Type: Integer

Required: No

cachingEnabled

Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.

Type: Boolean

Required: No

dataTraceEnabled

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.

Type: Boolean

Required: No

loggingLevel

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.

Type: String

Required: No

metricsEnabled

Specifies whether Amazon CloudWatch metrics are enabled for this method.

Type: Boolean

Required: No

requireAuthorizationForCacheControl

Specifies whether authorization is required for a cache invalidation request.

Type: Boolean

Required: No

throttlingBurstLimit

Specifies the throttling burst limit.

Type: Integer

Required: No

throttlingRateLimit

Specifies the throttling rate limit.

Type: Double

Required: No

unauthorizedCacheControlHeaderStrategy

Specifies how to handle unauthorized requests for cache invalidation.

Type: String

Valid Values: FAIL_WITH_403 | SUCCEED_WITH_RESPONSE_HEADER | SUCCEED_WITHOUT_RESPONSE_HEADER

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

En esta página

PrivacidadTérminos del sitioPreferencias de cookies
© 2025, Amazon Web Services, Inc o sus afiliados. Todos los derechos reservados.