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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnResponseHeadersPolicy.ContentTypeOptionsPropertystatic final classAn implementation forCfnResponseHeadersPolicy.ContentTypeOptionsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A Boolean that determines whether CloudFront overrides theX-Content-Type-OptionsHTTP 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-OptionsHTTP response header received from the origin with the one specified in this response headers policy.Returns union: either
BooleanorIResolvable- See Also:
-
builder
-