Class: Aws::CloudFront::Types::UpdateOriginRequestPolicyRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-cloudfront/types.rb

Overview

Note:

When making an API call, you may pass UpdateOriginRequestPolicyRequest data as a 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",
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#idString

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`.

Returns:

  • (String)


13311
13312
13313
13314
13315
13316
13317
# File 'lib/aws-sdk-cloudfront/types.rb', line 13311

class UpdateOriginRequestPolicyRequest < Struct.new(
  :origin_request_policy_config,
  :id,
  :if_match)
  SENSITIVE = []
  include Aws::Structure
end

#if_matchString

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`.

Returns:

  • (String)


13311
13312
13313
13314
13315
13316
13317
# File 'lib/aws-sdk-cloudfront/types.rb', line 13311

class UpdateOriginRequestPolicyRequest < Struct.new(
  :origin_request_policy_config,
  :id,
  :if_match)
  SENSITIVE = []
  include Aws::Structure
end

#origin_request_policy_configTypes::OriginRequestPolicyConfig

An origin request policy configuration.



13311
13312
13313
13314
13315
13316
13317
# File 'lib/aws-sdk-cloudfront/types.rb', line 13311

class UpdateOriginRequestPolicyRequest < Struct.new(
  :origin_request_policy_config,
  :id,
  :if_match)
  SENSITIVE = []
  include Aws::Structure
end