lib/aws-sdk-cloudfront/client.rb in aws-sdk-cloudfront-1.72.0 vs lib/aws-sdk-cloudfront/client.rb in aws-sdk-cloudfront-1.73.0

- old
+ new

@@ -2470,23 +2470,32 @@ end # Creates a response headers policy. # # A response headers policy contains information about a set of HTTP - # response headers and their values. To create a response headers - # policy, you provide some metadata about the policy, and a set of - # configurations that specify the response headers. + # headers. To create a response headers policy, you provide some + # metadata about the policy and a set of configurations that specify the + # headers. # # After you create a response headers policy, you can use its ID to # attach it to one or more cache behaviors in a CloudFront distribution. - # When it's attached to a cache behavior, CloudFront adds the headers - # in the policy to HTTP responses that it sends for requests that match - # the cache behavior. + # When it's attached to a cache behavior, the response headers policy + # affects the HTTP headers that CloudFront includes in HTTP responses to + # requests that match the cache behavior. CloudFront adds or removes + # response headers according to the configuration of the response + # headers policy. # + # For more information, see [Adding or removing HTTP headers in + # CloudFront responses][1] in the *Amazon CloudFront Developer Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/modifying-response-headers.html + # # @option params [required, Types::ResponseHeadersPolicyConfig] :response_headers_policy_config # Contains metadata about the response headers policy, and a set of - # configurations that specify the response headers. + # configurations that specify the HTTP headers. # # @return [Types::CreateResponseHeadersPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateResponseHeadersPolicyResult#response_headers_policy #response_headers_policy} => Types::ResponseHeadersPolicy # * {Types::CreateResponseHeadersPolicyResult#location #location} => String @@ -2560,10 +2569,18 @@ # value: "string", # required # override: false, # required # }, # ], # }, + # remove_headers_config: { + # quantity: 1, # required + # items: [ + # { + # header: "string", # required + # }, + # ], + # }, # }, # }) # # @example Response structure # @@ -2606,10 +2623,13 @@ # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean + # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.quantity #=> Integer + # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items #=> Array + # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items[0].header #=> String # resp.location #=> String # resp.etag #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateResponseHeadersPolicy AWS API Documentation # @@ -4792,10 +4812,13 @@ # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean + # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.quantity #=> Integer + # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items #=> Array + # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items[0].header #=> String # resp.etag #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy AWS API Documentation # # @overload get_response_headers_policy(params = {}) @@ -4873,10 +4896,13 @@ # resp.response_headers_policy_config.custom_headers_config.quantity #=> Integer # resp.response_headers_policy_config.custom_headers_config.items #=> Array # resp.response_headers_policy_config.custom_headers_config.items[0].header #=> String # resp.response_headers_policy_config.custom_headers_config.items[0].value #=> String # resp.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean + # resp.response_headers_policy_config.remove_headers_config.quantity #=> Integer + # resp.response_headers_policy_config.remove_headers_config.items #=> Array + # resp.response_headers_policy_config.remove_headers_config.items[0].header #=> String # resp.etag #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig AWS API Documentation # # @overload get_response_headers_policy_config(params = {}) @@ -6741,10 +6767,13 @@ # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean + # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.remove_headers_config.quantity #=> Integer + # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.remove_headers_config.items #=> Array + # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.remove_headers_config.items[0].header #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies AWS API Documentation # # @overload list_response_headers_policies(params = {}) # @param [Hash] params ({}) @@ -8672,10 +8701,18 @@ # value: "string", # required # override: false, # required # }, # ], # }, + # remove_headers_config: { + # quantity: 1, # required + # items: [ + # { + # header: "string", # required + # }, + # ], + # }, # }, # id: "string", # required # if_match: "string", # }) # @@ -8720,10 +8757,13 @@ # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean + # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.quantity #=> Integer + # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items #=> Array + # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items[0].header #=> String # resp.etag #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy AWS API Documentation # # @overload update_response_headers_policy(params = {}) @@ -8834,10 +8874,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-cloudfront' - context[:gem_version] = '1.72.0' + context[:gem_version] = '1.73.0' Seahorse::Client::Request.new(handlers, context) end # Polls an API operation until a resource enters a desired state. #