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

Class: Aws::CloudFront::Types::OriginCustomHeader

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

{
  header_name: "string", # required
  header_value: "string", # required
}

A complex type that contains HeaderName and HeaderValue elements, if any, for this distribution.

Instance Attribute Summary collapse

Instance Attribute Details

#header_nameString

The name of a header that you want CloudFront to forward to your origin. For more information, see Forwarding Custom Headers to Your Origin (Web Distributions Only) in the Amazon Amazon CloudFront Developer Guide.

Returns:

  • (String)


4536
4537
4538
4539
4540
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 4536

class OriginCustomHeader < Struct.new(
  :header_name,
  :header_value)
  include Aws::Structure
end

#header_valueString

The value for the header that you specified in the HeaderName field.

Returns:

  • (String)


4536
4537
4538
4539
4540
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 4536

class OriginCustomHeader < Struct.new(
  :header_name,
  :header_value)
  include Aws::Structure
end