Class: AWSCDK::CloudFront::CfnResponseHeadersPolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnResponseHeadersPolicyProps
- Defined in:
- cloud_front/cfn_response_headers_policy_props.rb
Overview
Properties for defining a CfnResponseHeadersPolicy.
Instance Attribute Summary collapse
-
#response_headers_policy_config ⇒ AWSCDK::IResolvable, AWSCDK::CloudFront::CfnResponseHeadersPolicy::ResponseHeadersPolicyConfigProperty
readonly
A response headers policy configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(response_headers_policy_config:) ⇒ CfnResponseHeadersPolicyProps
constructor
A new instance of CfnResponseHeadersPolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(response_headers_policy_config:) ⇒ CfnResponseHeadersPolicyProps
Returns a new instance of CfnResponseHeadersPolicyProps.
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_config ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |