Class: AWSCDK::CloudFront::CfnResponseHeadersPolicy::FrameOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnResponseHeadersPolicy::FrameOptionsProperty
- Defined in:
- cloud_front/cfn_response_headers_policy.rb
Overview
Determines whether CloudFront includes the X-Frame-Options HTTP response header and the header's value.
For more information about the X-Frame-Options HTTP response header, see X-Frame-Options in the MDN Web Docs.
Instance Attribute Summary collapse
-
#frame_option ⇒ String
readonly
The value of the
X-Frame-OptionsHTTP response header. -
#override ⇒ Boolean, AWSCDK::IResolvable
readonly
A Boolean that determines whether CloudFront overrides the
X-Frame-OptionsHTTP response header received from the origin with the one specified in this response headers policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(frame_option:, override:) ⇒ FrameOptionsProperty
constructor
A new instance of FrameOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(frame_option:, override:) ⇒ FrameOptionsProperty
Returns a new instance of FrameOptionsProperty.
963 964 965 966 967 968 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 963 def initialize(frame_option:, override:) @frame_option = frame_option Jsii::Type.check_type(@frame_option, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "frameOption") @override = override Jsii::Type.check_type(@override, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "override") end |
Instance Attribute Details
#frame_option ⇒ String (readonly)
The value of the X-Frame-Options HTTP response header. Valid values are DENY and SAMEORIGIN .
For more information about these values, see X-Frame-Options in the MDN Web Docs.
976 977 978 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 976 def frame_option @frame_option end |
#override ⇒ Boolean, AWSCDK::IResolvable (readonly)
A Boolean that determines whether CloudFront overrides the X-Frame-Options HTTP response header received from the origin with the one specified in this response headers policy.
981 982 983 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 981 def override @override end |
Class Method Details
.jsii_properties ⇒ Object
983 984 985 986 987 988 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 983 def self.jsii_properties { :frame_option => "frameOption", :override => "override", } end |
Instance Method Details
#to_jsii ⇒ Object
990 991 992 993 994 995 996 997 |
# File 'cloud_front/cfn_response_headers_policy.rb', line 990 def to_jsii result = {} result.merge!({ "frameOption" => @frame_option, "override" => @override, }) result.compact end |