Class: AWSCDK::CloudFront::CfnResponseHeadersPolicy::ReferrerPolicyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnResponseHeadersPolicy::ReferrerPolicyProperty
- Defined in:
- cloud_front/cfn_response_headers_policy.rb
Overview
Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header's value.
For more information about the Referrer-Policy HTTP response header, see Referrer-Policy in the MDN Web Docs.
Instance Attribute Summary collapse
-
#override ⇒ Boolean, AWSCDK::IResolvable
readonly
A Boolean that determines whether CloudFront overrides the
Referrer-PolicyHTTP response header received from the origin with the one specified in this response headers policy. -
#referrer_policy ⇒ String
readonly
The value of the
Referrer-PolicyHTTP response header.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(override:, referrer_policy:) ⇒ ReferrerPolicyProperty
constructor
A new instance of ReferrerPolicyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(override:, referrer_policy:) ⇒ ReferrerPolicyProperty
Returns a new instance of ReferrerPolicyProperty.
1010 1011 1012 1013 1014 1015 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1010 def initialize(override:, referrer_policy:) @override = override Jsii::Type.check_type(@override, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "override") @referrer_policy = referrer_policy Jsii::Type.check_type(@referrer_policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "referrerPolicy") end |
Instance Attribute Details
#override ⇒ Boolean, AWSCDK::IResolvable (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.
1021 1022 1023 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1021 def override @override end |
#referrer_policy ⇒ String (readonly)
The value of the Referrer-Policy HTTP response header. Valid values are:.
no-referrerno-referrer-when-downgradeoriginorigin-when-cross-originsame-originstrict-originstrict-origin-when-cross-originunsafe-url
For more information about these values, see Referrer-Policy in the MDN Web Docs.
1037 1038 1039 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1037 def referrer_policy @referrer_policy end |
Class Method Details
.jsii_properties ⇒ Object
1039 1040 1041 1042 1043 1044 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1039 def self.jsii_properties { :override => "override", :referrer_policy => "referrerPolicy", } end |
Instance Method Details
#to_jsii ⇒ Object
1046 1047 1048 1049 1050 1051 1052 1053 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 1046 def to_jsii result = {} result.merge!({ "override" => @override, "referrerPolicy" => @referrer_policy, }) result.compact end |