Class: AWSCDK::CloudFront::CfnResponseHeadersPolicy::RemoveHeadersConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnResponseHeadersPolicy::RemoveHeadersConfigProperty
- Defined in:
- cloud_front/cfn_response_headers_policy.rb
Overview
A list of HTTP header names that CloudFront removes from HTTP responses to requests that match the cache behavior that this response headers policy is attached to.
Instance Attribute Summary collapse
-
#items ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::CloudFront::CfnResponseHeadersPolicy::RemoveHeaderProperty>
readonly
The list of HTTP header names.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(items:) ⇒ RemoveHeadersConfigProperty
constructor
A new instance of RemoveHeadersConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(items:) ⇒ RemoveHeadersConfigProperty
Returns a new instance of RemoveHeadersConfigProperty.
1096 1097 1098 1099 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1096 def initialize(items:) @items = items Jsii::Type.check_type(@items, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWRmcm9udC5DZm5SZXNwb25zZUhlYWRlcnNQb2xpY3kuUmVtb3ZlSGVhZGVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "items") end |
Instance Attribute Details
#items ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::CloudFront::CfnResponseHeadersPolicy::RemoveHeaderProperty> (readonly)
The list of HTTP header names.
1105 1106 1107 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1105 def items @items end |
Class Method Details
.jsii_properties ⇒ Object
1107 1108 1109 1110 1111 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1107 def self.jsii_properties { :items => "items", } end |
Instance Method Details
#to_jsii ⇒ Object
1113 1114 1115 1116 1117 1118 1119 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1113 def to_jsii result = {} result.merge!({ "items" => @items, }) result.compact end |