Class: AWSCDK::CloudFront::CfnResponseHeadersPolicyProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_front/cfn_response_headers_policy_props.rb

Overview

Properties for defining a CfnResponseHeadersPolicy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_headers_policy_config:) ⇒ CfnResponseHeadersPolicyProps

Returns a new instance of CfnResponseHeadersPolicyProps.

Parameters:



10
11
12
13
# File 'cloud_front/cfn_response_headers_policy_props.rb', line 10

def initialize(response_headers_policy_config:)
  @response_headers_policy_config = response_headers_policy_config.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnResponseHeadersPolicy::ResponseHeadersPolicyConfigProperty.new(**response_headers_policy_config.transform_keys(&:to_sym)) : response_headers_policy_config
  Jsii::Type.check_type(@response_headers_policy_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250LkNmblJlc3BvbnNlSGVhZGVyc1BvbGljeS5SZXNwb25zZUhlYWRlcnNQb2xpY3lDb25maWdQcm9wZXJ0eSJ9XX19")), "responseHeadersPolicyConfig")
end

Instance Attribute Details

#response_headers_policy_configAWSCDK::IResolvable, AWSCDK::CloudFront::CfnResponseHeadersPolicy::ResponseHeadersPolicyConfigProperty (readonly)

A response headers policy configuration.



19
20
21
# File 'cloud_front/cfn_response_headers_policy_props.rb', line 19

def response_headers_policy_config
  @response_headers_policy_config
end

Class Method Details

.jsii_propertiesObject



21
22
23
24
25
# File 'cloud_front/cfn_response_headers_policy_props.rb', line 21

def self.jsii_properties
  {
    :response_headers_policy_config => "responseHeadersPolicyConfig",
  }
end

Instance Method Details

#to_jsiiObject



27
28
29
30
31
32
33
# File 'cloud_front/cfn_response_headers_policy_props.rb', line 27

def to_jsii
  result = {}
  result.merge!({
    "responseHeadersPolicyConfig" => @response_headers_policy_config,
  })
  result.compact
end