Interface CfnResponseHeadersPolicy.ContentTypeOptionsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicy.ContentTypeOptionsProperty.Jsii$Proxy
- Enclosing class:
CfnResponseHeadersPolicy
@Stability(Stable)
public static interface CfnResponseHeadersPolicy.ContentTypeOptionsProperty
extends software.amazon.jsii.JsiiSerializable
Determines whether CloudFront includes the
X-Content-Type-Options
HTTP response header with its value set to nosniff
.
For more information about the X-Content-Type-Options
HTTP response header, see X-Content-Type-Options in the MDN Web Docs.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cloudfront.*; ContentTypeOptionsProperty contentTypeOptionsProperty = ContentTypeOptionsProperty.builder() .override(false) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnResponseHeadersPolicy.ContentTypeOptionsProperty
static final class
An implementation forCfnResponseHeadersPolicy.ContentTypeOptionsProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
A Boolean that determines whether CloudFront overrides theX-Content-Type-Options
HTTP response header received from the origin with the one specified in this response headers policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOverride
A Boolean that determines whether CloudFront overrides theX-Content-Type-Options
HTTP response header received from the origin with the one specified in this response headers policy.- See Also:
-
builder
-