Class: Aws::CloudFront::Types::CreateOriginRequestPolicyRequest

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

Overview

Note:

When making an API call, you may pass CreateOriginRequestPolicyRequest 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"],
      },
    },
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#origin_request_policy_configTypes::OriginRequestPolicyConfig

An origin request policy configuration.



2655
2656
2657
2658
2659
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 2655

class CreateOriginRequestPolicyRequest < Struct.new(
  :origin_request_policy_config)
  SENSITIVE = []
  include Aws::Structure
end