Class: AWSCDK::CloudFront::CfnResponseHeadersPolicy::CustomHeadersConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnResponseHeadersPolicy::CustomHeadersConfigProperty
- Defined in:
- cloud_front/cfn_response_headers_policy.rb
Overview
A list of HTTP response header names and their values.
CloudFront includes these headers in HTTP responses that it sends for requests that match a cache behavior that's associated with this response headers policy.
Instance Attribute Summary collapse
-
#items ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::CloudFront::CfnResponseHeadersPolicy::CustomHeaderProperty>
readonly
The list of HTTP response headers and their values.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(items:) ⇒ CustomHeadersConfigProperty
constructor
A new instance of CustomHeadersConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(items:) ⇒ CustomHeadersConfigProperty
Returns a new instance of CustomHeadersConfigProperty.
927 928 929 930 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 927 def initialize(items:) @items = items Jsii::Type.check_type(@items, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWRmcm9udC5DZm5SZXNwb25zZUhlYWRlcnNQb2xpY3kuQ3VzdG9tSGVhZGVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "items") end |
Instance Attribute Details
#items ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::CloudFront::CfnResponseHeadersPolicy::CustomHeaderProperty> (readonly)
The list of HTTP response headers and their values.
936 937 938 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 936 def items @items end |
Class Method Details
.jsii_properties ⇒ Object
938 939 940 941 942 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 938 def self.jsii_properties { :items => "items", } end |
Instance Method Details
#to_jsii ⇒ Object
944 945 946 947 948 949 950 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 944 def to_jsii result = {} result.merge!({ "items" => @items, }) result.compact end |