Class: AWSCDK::CloudFront::CfnResponseHeadersPolicy::AccessControlAllowHeadersProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(items:) ⇒ AccessControlAllowHeadersProperty

Returns a new instance of AccessControlAllowHeadersProperty.

Parameters:

  • items (Array<String>)

    The list of HTTP header names.



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

#itemsArray<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_propertiesObject



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_jsiiObject



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