MethodSetting
public struct MethodSetting : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
Specifies whether the cached responses are encrypted. The PATCH path for this setting is /{method_setting_key}/caching/dataEncrypted, and the value is a Boolean.
Declaration
Swift
public let cacheDataEncrypted: Bool?
-
Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. The PATCH path for this setting is /{method_setting_key}/caching/ttlInSeconds, and the value is an integer.
Declaration
Swift
public let cacheTtlInSeconds: Int?
-
Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is /{method_setting_key}/caching/enabled, and the value is a Boolean.
Declaration
Swift
public let cachingEnabled: Bool?
-
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/dataTrace, and the value is a Boolean.
Declaration
Swift
public let dataTraceEnabled: Bool?
-
Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel, and the available levels 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.
Declaration
Swift
public let loggingLevel: String?
-
Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is /{method_setting_key}/metrics/enabled, and the value is a Boolean.
Declaration
Swift
public let metricsEnabled: Bool?
-
Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is /{method_setting_key}/caching/requireAuthorizationForCacheControl, and the value is a Boolean.
Declaration
Swift
public let requireAuthorizationForCacheControl: Bool?
-
Specifies the throttling burst limit. The PATCH path for this setting is /{method_setting_key}/throttling/burstLimit, and the value is an integer.
Declaration
Swift
public let throttlingBurstLimit: Int?
-
Specifies the throttling rate limit. The PATCH path for this setting is /{method_setting_key}/throttling/rateLimit, and the value is a double.
Declaration
Swift
public let throttlingRateLimit: Double?
-
Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy, and the available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, SUCCEED_WITHOUT_RESPONSE_HEADER.
Declaration
Swift
public let unauthorizedCacheControlHeaderStrategy: UnauthorizedCacheControlHeaderStrategy?
-
init(cacheDataEncrypted:cacheTtlInSeconds:cachingEnabled:dataTraceEnabled:loggingLevel:metricsEnabled:requireAuthorizationForCacheControl:throttlingBurstLimit:throttlingRateLimit:unauthorizedCacheControlHeaderStrategy:)
Undocumented
Declaration
Swift
public init(cacheDataEncrypted: Bool? = nil, cacheTtlInSeconds: Int? = nil, cachingEnabled: Bool? = nil, dataTraceEnabled: Bool? = nil, loggingLevel: String? = nil, metricsEnabled: Bool? = nil, requireAuthorizationForCacheControl: Bool? = nil, throttlingBurstLimit: Int? = nil, throttlingRateLimit: Double? = nil, unauthorizedCacheControlHeaderStrategy: UnauthorizedCacheControlHeaderStrategy? = nil)