MethodSettingsSettings

data class MethodSettingsSettings(val cacheDataEncrypted: Boolean? = null, val cacheTtlInSeconds: Int? = null, val cachingEnabled: Boolean? = null, val dataTraceEnabled: Boolean? = null, val loggingLevel: String? = null, val metricsEnabled: Boolean? = null, val requireAuthorizationForCacheControl: Boolean? = null, val throttlingBurstLimit: Int? = null, val throttlingRateLimit: Double? = null, val unauthorizedCacheControlHeaderStrategy: String? = null)

Constructors

Link copied to clipboard
constructor(cacheDataEncrypted: Boolean? = null, cacheTtlInSeconds: Int? = null, cachingEnabled: Boolean? = null, dataTraceEnabled: Boolean? = null, loggingLevel: String? = null, metricsEnabled: Boolean? = null, requireAuthorizationForCacheControl: Boolean? = null, throttlingBurstLimit: Int? = null, throttlingRateLimit: Double? = null, unauthorizedCacheControlHeaderStrategy: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the cached responses are encrypted.

Link copied to clipboard
val cacheTtlInSeconds: Int? = null

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

Link copied to clipboard
val cachingEnabled: Boolean? = null

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

Link copied to clipboard

Whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs.

Link copied to clipboard
val loggingLevel: String? = null

Logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The available levels are OFF, ERROR, and INFO.

Link copied to clipboard
val metricsEnabled: Boolean? = null

Whether Amazon CloudWatch metrics are enabled for this method.

Link copied to clipboard

Whether authorization is required for a cache invalidation request.

Link copied to clipboard

Throttling burst limit. Default: -1 (throttling disabled).

Link copied to clipboard

Throttling rate limit. Default: -1 (throttling disabled).

Link copied to clipboard

How to handle unauthorized requests for cache invalidation. The available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, SUCCEED_WITHOUT_RESPONSE_HEADER.