Class: AWSCDK::CloudFront::CfnResponseHeadersPolicy::AccessControlExposeHeadersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnResponseHeadersPolicy::AccessControlExposeHeadersProperty
- 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
-
#items ⇒ Array<String>
readonly
The list of HTTP headers.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(items:) ⇒ AccessControlExposeHeadersProperty
constructor
A new instance of AccessControlExposeHeadersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(items:) ⇒ AccessControlExposeHeadersProperty
Returns a new instance of AccessControlExposeHeadersProperty.
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
#items ⇒ Array<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_properties ⇒ Object
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_jsii ⇒ Object
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 |