MethodSettingsSettings constructor
- Input<
bool?> ? cacheDataEncrypted, - Input<
int?> ? cacheTtlInSeconds, - Input<
bool?> ? cachingEnabled, - Input<
bool?> ? dataTraceEnabled, - Input<
String?> ? loggingLevel, - Input<
bool?> ? metricsEnabled, - Input<
bool?> ? requireAuthorizationForCacheControl, - Input<
int?> ? throttlingBurstLimit, - Input<
double?> ? throttlingRateLimit, - Input<
String?> ? unauthorizedCacheControlHeaderStrategy,
Creates a new MethodSettingsSettings.
cacheDataEncrypted Whether the cached responses are encrypted.
cacheTtlInSeconds Time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
cachingEnabled Whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
dataTraceEnabled Whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs.
loggingLevel Logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The available levels are OFF, ERROR, and INFO.
metricsEnabled Whether Amazon CloudWatch metrics are enabled for this method.
requireAuthorizationForCacheControl Whether authorization is required for a cache invalidation request.
throttlingBurstLimit Throttling burst limit. Default: -1 (throttling disabled).
throttlingRateLimit Throttling rate limit. Default: -1 (throttling disabled).
unauthorizedCacheControlHeaderStrategy How to handle unauthorized requests for cache invalidation. The available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, SUCCEED_WITHOUT_RESPONSE_HEADER.
Implementation
const MethodSettingsSettings({
this.cacheDataEncrypted,
this.cacheTtlInSeconds,
this.cachingEnabled,
this.dataTraceEnabled,
this.loggingLevel,
this.metricsEnabled,
this.requireAuthorizationForCacheControl,
this.throttlingBurstLimit,
this.throttlingRateLimit,
this.unauthorizedCacheControlHeaderStrategy,
});