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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#header_nameString

The name of a header that you want CloudFront to send to your origin. For more information, see [Adding Custom Headers to Origin Requests] in the Amazon CloudFront Developer Guide.

[1]: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html

Returns:

  • (String)


9392
9393
9394
9395
9396
9397
# File 'lib/aws-sdk-cloudfront/types.rb', line 9392

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

#header_valueString

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

Returns:

  • (String)


9392
9393
9394
9395
9396
9397
# File 'lib/aws-sdk-cloudfront/types.rb', line 9392

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