class
Amazonite::ApiGateway::MethodSetting
- Amazonite::ApiGateway::MethodSetting
- Reference
- Object
Overview
Specifies the method setting properties.
Included Modules
- JSON::Serializable
Defined in:
api_gateway/method_setting.crConstructors
- .new(pull : JSON::PullParser)
- .new(metrics_enabled : Bool | Nil = nil, logging_level : String | Nil = nil, data_trace_enabled : Bool | Nil = nil, throttling_burst_limit : Int32 | Nil = nil, throttling_rate_limit : Float64 | Nil = nil, caching_enabled : Bool | Nil = nil, cache_ttl_in_seconds : Int32 | Nil = nil, cache_data_encrypted : Bool | Nil = nil, require_authorization_for_cache_control : Bool | Nil = nil, unauthorized_cache_control_header_strategy : UnauthorizedCacheControlHeaderStrategy | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#cache_data_encrypted : Bool | Nil
Specifies whether the cached responses are encrypted.
-
#cache_data_encrypted=(cache_data_encrypted : Bool | Nil)
Specifies whether the cached responses are encrypted.
-
#cache_ttl_in_seconds : Int32 | Nil
Specifies the time to live (TTL), in seconds, for cached responses.
-
#cache_ttl_in_seconds=(cache_ttl_in_seconds : Int32 | Nil)
Specifies the time to live (TTL), in seconds, for cached responses.
-
#caching_enabled : Bool | Nil
Specifies whether responses should be cached and returned for requests.
-
#caching_enabled=(caching_enabled : Bool | Nil)
Specifies whether responses should be cached and returned for requests.
-
#data_trace_enabled : Bool | Nil
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
-
#data_trace_enabled=(data_trace_enabled : Bool | Nil)
Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
-
#hash(hasher)
See
Object#hash(hasher) -
#logging_level : String | Nil
Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
-
#logging_level=(logging_level : String | Nil)
Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
-
#metrics_enabled : Bool | Nil
Specifies whether Amazon CloudWatch metrics are enabled for this method.
-
#metrics_enabled=(metrics_enabled : Bool | Nil)
Specifies whether Amazon CloudWatch metrics are enabled for this method.
-
#require_authorization_for_cache_control : Bool | Nil
Specifies whether authorization is required for a cache invalidation request.
-
#require_authorization_for_cache_control=(require_authorization_for_cache_control : Bool | Nil)
Specifies whether authorization is required for a cache invalidation request.
-
#throttling_burst_limit : Int32 | Nil
Specifies the throttling burst limit.
-
#throttling_burst_limit=(throttling_burst_limit : Int32 | Nil)
Specifies the throttling burst limit.
-
#throttling_rate_limit : Float64 | Nil
Specifies the throttling rate limit.
-
#throttling_rate_limit=(throttling_rate_limit : Float64 | Nil)
Specifies the throttling rate limit.
-
#unauthorized_cache_control_header_strategy : UnauthorizedCacheControlHeaderStrategy | Nil
Specifies how to handle unauthorized requests for cache invalidation.
-
#unauthorized_cache_control_header_strategy=(unauthorized_cache_control_header_strategy : UnauthorizedCacheControlHeaderStrategy | Nil)
Specifies how to handle unauthorized requests for cache invalidation.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
Specifies whether the cached responses are encrypted.
Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
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.
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.
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.
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.
Specifies whether Amazon CloudWatch metrics are enabled for this method.
Specifies whether Amazon CloudWatch metrics are enabled for this method.
Specifies whether authorization is required for a cache invalidation request.
Specifies whether authorization is required for a cache invalidation request.
Specifies the throttling burst limit.
Specifies the throttling rate limit.
Specifies how to handle unauthorized requests for cache invalidation.
Specifies how to handle unauthorized requests for cache invalidation.