Class: AWSCDK::CloudFront::CfnResponseHeadersPolicy::AccessControlExposeHeadersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_front/cfn_response_headers_policy.rb

Overview

A list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header.

For more information about the Access-Control-Expose-Headers HTTP response header, see Access-Control-Expose-Headers in the MDN Web Docs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(items:) ⇒ AccessControlExposeHeadersProperty

Returns a new instance of AccessControlExposeHeadersProperty.

Parameters:

  • items (Array<String>)

    The list of HTTP headers.



646
647
648
649
# File 'cloud_front/cfn_response_headers_policy.rb', line 646

def initialize(items:)
  @items = items
  Jsii::Type.check_type(@items, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "items")
end

Instance Attribute Details

#itemsArray<String> (readonly)

The list of HTTP headers.

You can specify * to expose all headers.



657
658
659
# File 'cloud_front/cfn_response_headers_policy.rb', line 657

def items
  @items
end

Class Method Details

.jsii_propertiesObject



659
660
661
662
663
# File 'cloud_front/cfn_response_headers_policy.rb', line 659

def self.jsii_properties
  {
    :items => "items",
  }
end

Instance Method Details

#to_jsiiObject



665
666
667
668
669
670
671
# File 'cloud_front/cfn_response_headers_policy.rb', line 665

def to_jsii
  result = {}
  result.merge!({
    "items" => @items,
  })
  result.compact
end