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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CustomHeaders as input to an Aws::Client method, you can use a vanilla 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.

Returned by:

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:

  • (Array<Types::OriginCustomHeader>)

    Optional: A list that contains one OriginCustomHeader element for each custom header that you want CloudFront to forward to the origin.

#quantityInteger

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

Returns:

  • (Integer)

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