Class: AWSCDK::CloudFront::ResponseHeadersContentTypeOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::ResponseHeadersContentTypeOptions
- Defined in:
- cloud_front/response_headers_content_type_options.rb
Overview
Determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff.
Instance Attribute Summary collapse
-
#override ⇒ Boolean
readonly
A Boolean that determines whether CloudFront overrides the X-Content-Type-Options HTTP response header received from the origin with the one specified in this response headers policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(override:) ⇒ ResponseHeadersContentTypeOptions
constructor
A new instance of ResponseHeadersContentTypeOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(override:) ⇒ ResponseHeadersContentTypeOptions
Returns a new instance of ResponseHeadersContentTypeOptions.
8 9 10 11 |
# File 'cloud_front/response_headers_content_type_options.rb', line 8 def initialize(override:) @override = override Jsii::Type.check_type(@override, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "override") end |
Instance Attribute Details
#override ⇒ Boolean (readonly)
A Boolean that determines whether CloudFront overrides the X-Content-Type-Options HTTP response header received from the origin with the one specified in this response headers policy.
16 17 18 |
# File 'cloud_front/response_headers_content_type_options.rb', line 16 def override @override end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'cloud_front/response_headers_content_type_options.rb', line 18 def self.jsii_properties { :override => "override", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'cloud_front/response_headers_content_type_options.rb', line 24 def to_jsii result = {} result.merge!({ "override" => @override, }) result.compact end |