Class: AWSCDK::CloudFront::CfnResponseHeadersPolicy::CustomHeadersConfigProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(items:) ⇒ CustomHeadersConfigProperty

Returns a new instance of CustomHeadersConfigProperty.

Parameters:



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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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