Class: AWSCDK::CloudFront::CfnResponseHeadersPolicy::RemoveHeaderProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header:) ⇒ RemoveHeaderProperty

Returns a new instance of RemoveHeaderProperty.

Parameters:

  • header (String)

    The HTTP header name.



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

#headerString (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_propertiesObject



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_jsiiObject



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