Class: AWSCDK::CloudFront::ResponseHeadersReferrerPolicy
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::ResponseHeadersReferrerPolicy
- Defined in:
- cloud_front/response_headers_referrer_policy.rb
Overview
Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header’s value.
Instance Attribute Summary collapse
-
#override ⇒ Boolean
readonly
A Boolean that determines whether CloudFront overrides the Referrer-Policy HTTP response header received from the origin with the one specified in this response headers policy.
-
#referrer_policy ⇒ AWSCDK::CloudFront::HeadersReferrerPolicy
readonly
The value of the Referrer-Policy HTTP response header.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(override:, referrer_policy:) ⇒ ResponseHeadersReferrerPolicy
constructor
A new instance of ResponseHeadersReferrerPolicy.
- #to_jsii ⇒ Object
Constructor Details
#initialize(override:, referrer_policy:) ⇒ ResponseHeadersReferrerPolicy
Returns a new instance of ResponseHeadersReferrerPolicy.
9 10 11 12 13 14 |
# File 'cloud_front/response_headers_referrer_policy.rb', line 9 def initialize(override:, referrer_policy:) @override = override Jsii::Type.check_type(@override, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "override") @referrer_policy = referrer_policy Jsii::Type.check_type(@referrer_policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWRmcm9udC5IZWFkZXJzUmVmZXJyZXJQb2xpY3kifQ==")), "referrerPolicy") end |
Instance Attribute Details
#override ⇒ Boolean (readonly)
A Boolean that determines whether CloudFront overrides the Referrer-Policy HTTP response header received from the origin with the one specified in this response headers policy.
19 20 21 |
# File 'cloud_front/response_headers_referrer_policy.rb', line 19 def override @override end |
#referrer_policy ⇒ AWSCDK::CloudFront::HeadersReferrerPolicy (readonly)
The value of the Referrer-Policy HTTP response header.
23 24 25 |
# File 'cloud_front/response_headers_referrer_policy.rb', line 23 def referrer_policy @referrer_policy end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'cloud_front/response_headers_referrer_policy.rb', line 25 def self.jsii_properties { :override => "override", :referrer_policy => "referrerPolicy", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'cloud_front/response_headers_referrer_policy.rb', line 32 def to_jsii result = {} result.merge!({ "override" => @override, "referrerPolicy" => @referrer_policy, }) result.compact end |