Class: AWSCDK::CloudFront::CfnResponseHeadersPolicy::AccessControlAllowHeadersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnResponseHeadersPolicy::AccessControlAllowHeadersProperty
- Defined in:
- cloud_front/cfn_response_headers_policy.rb
Overview
A list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header.
For more information about the Access-Control-Allow-Headers HTTP response header, see Access-Control-Allow-Headers in the MDN Web Docs.
Instance Attribute Summary collapse
-
#items ⇒ Array<String>
readonly
The list of HTTP header names.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(items:) ⇒ AccessControlAllowHeadersProperty
constructor
A new instance of AccessControlAllowHeadersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(items:) ⇒ AccessControlAllowHeadersProperty
Returns a new instance of AccessControlAllowHeadersProperty.
526 527 528 529 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 526 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 header names.
You can specify * to allow all headers.
537 538 539 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 537 def items @items end |
Class Method Details
.jsii_properties ⇒ Object
539 540 541 542 543 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 539 def self.jsii_properties { :items => "items", } end |
Instance Method Details
#to_jsii ⇒ Object
545 546 547 548 549 550 551 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 545 def to_jsii result = {} result.merge!({ "items" => @items, }) result.compact end |