Class: Aws::CloudFront::Types::UpdateCachePolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudFront::Types::UpdateCachePolicyRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudfront/types.rb
Overview
Note:
When making an API call, you may pass UpdateCachePolicyRequest data as a hash:
{
cache_policy_config: { # required
comment: "string",
name: "string", # required
default_ttl: 1,
max_ttl: 1,
min_ttl: 1, # required
parameters_in_cache_key_and_forwarded_to_origin: {
enable_accept_encoding_gzip: false, # required
enable_accept_encoding_brotli: false,
headers_config: { # required
header_behavior: "none", # required, accepts none, whitelist
headers: {
quantity: 1, # required
items: ["string"],
},
},
cookies_config: { # required
cookie_behavior: "none", # required, accepts none, whitelist, allExcept, all
cookies: {
quantity: 1, # required
items: ["string"],
},
},
query_strings_config: { # required
query_string_behavior: "none", # required, accepts none, whitelist, allExcept, all
query_strings: {
quantity: 1, # required
items: ["string"],
},
},
},
},
id: "string", # required
if_match: "string",
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#cache_policy_config ⇒ Types::CachePolicyConfig
A cache policy configuration.
-
#id ⇒ String
The unique identifier for the cache policy that you are updating.
-
#if_match ⇒ String
The version of the cache policy that you are updating.
Instance Attribute Details
#cache_policy_config ⇒ Types::CachePolicyConfig
A cache policy configuration.
12611 12612 12613 12614 12615 12616 12617 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 12611 class UpdateCachePolicyRequest < Struct.new( :cache_policy_config, :id, :if_match) SENSITIVE = [] include Aws::Structure end |
#id ⇒ String
The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior’s ‘CachePolicyId` field in the response to `GetDistributionConfig`.
12611 12612 12613 12614 12615 12616 12617 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 12611 class UpdateCachePolicyRequest < Struct.new( :cache_policy_config, :id, :if_match) SENSITIVE = [] include Aws::Structure end |
#if_match ⇒ String
The version of the cache policy that you are updating. The version is returned in the cache policy’s ‘ETag` field in the response to `GetCachePolicyConfig`.
12611 12612 12613 12614 12615 12616 12617 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 12611 class UpdateCachePolicyRequest < Struct.new( :cache_policy_config, :id, :if_match) SENSITIVE = [] include Aws::Structure end |