Class: AWSCDK::CloudFront::CfnResponseHeadersPolicy::RemoveHeadersConfigProperty

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

Class Method Summary collapse

Instance Method Summary collapse

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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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