You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CloudFront::Types::CustomHeaders

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 CustomHeaders data as a hash:

{
  quantity: 1, # required
  items: [
    {
      header_name: "string", # required
      header_value: "string", # required
    },
  ],
}

A complex type that contains the list of Custom Headers for each origin.

Instance Attribute Summary collapse

Instance Attribute Details

#itemsArray<Types::OriginCustomHeader>

Optional: A list that contains one OriginCustomHeader element for each custom header that you want CloudFront to forward to the origin. If Quantity is 0, omit Items.

Returns:



1722
1723
1724
1725
1726
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 1722

class CustomHeaders < Struct.new(
  :quantity,
  :items)
  include Aws::Structure
end

#quantityInteger

The number of custom headers, if any, for this distribution.

Returns:

  • (Integer)


1722
1723
1724
1725
1726
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 1722

class CustomHeaders < Struct.new(
  :quantity,
  :items)
  include Aws::Structure
end