You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CloudFront::Types::UpdateOriginRequestPolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudFront::Types::UpdateOriginRequestPolicyRequest
- Defined in:
- (unknown)
Overview
When passing UpdateOriginRequestPolicyRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
origin_request_policy_config: { # required
comment: "string",
name: "string", # required
headers_config: { # required
header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront
headers: {
quantity: 1, # required
items: ["string"],
},
},
cookies_config: { # required
cookie_behavior: "none", # required, accepts none, whitelist, all
cookies: {
quantity: 1, # required
items: ["string"],
},
},
query_strings_config: { # required
query_string_behavior: "none", # required, accepts none, whitelist, all
query_strings: {
quantity: 1, # required
items: ["string"],
},
},
},
id: "string", # required
if_match: "string",
}
Instance Attribute Summary collapse
-
#id ⇒ String
The unique identifier for the origin request policy that you are updating.
-
#if_match ⇒ String
The version of the origin request policy that you are updating.
-
#origin_request_policy_config ⇒ Types::OriginRequestPolicyConfig
An origin request policy configuration.
Instance Attribute Details
#id ⇒ String
The unique identifier for the origin request policy that you are
updating. The identifier is returned in a cache behavior’s
OriginRequestPolicyId
field in the response to
GetDistributionConfig
.
#if_match ⇒ String
The version of the origin request policy that you are updating. The
version is returned in the origin request policy’s ETag
field in the
response to GetOriginRequestPolicyConfig
.
#origin_request_policy_config ⇒ Types::OriginRequestPolicyConfig
An origin request policy configuration.