Class: AWSCDK::CloudFront::CfnResponseHeadersPolicy::RemoveHeaderProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnResponseHeadersPolicy::RemoveHeaderProperty
- Defined in:
- cloud_front/cfn_response_headers_policy.rb
Overview
The name of an HTTP header 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
-
#header ⇒ String
readonly
The HTTP header name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(header:) ⇒ RemoveHeaderProperty
constructor
A new instance of RemoveHeaderProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(header:) ⇒ RemoveHeaderProperty
Returns a new instance of RemoveHeaderProperty.
1063 1064 1065 1066 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1063 def initialize(header:) @header = header Jsii::Type.check_type(@header, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "header") end |
Instance Attribute Details
#header ⇒ String (readonly)
The HTTP header name.
1072 1073 1074 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1072 def header @header end |
Class Method Details
.jsii_properties ⇒ Object
1074 1075 1076 1077 1078 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1074 def self.jsii_properties { :header => "header", } end |
Instance Method Details
#to_jsii ⇒ Object
1080 1081 1082 1083 1084 1085 1086 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1080 def to_jsii result = {} result.merge!({ "header" => @header, }) result.compact end |