@Stability(value=Stable)
public static interface CfnResponseHeadersPolicy.ContentTypeOptionsProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResponseHeadersPolicy.ContentTypeOptionsProperty.Builder
A builder for
CfnResponseHeadersPolicy.ContentTypeOptionsProperty |
static class |
CfnResponseHeadersPolicy.ContentTypeOptionsProperty.Jsii$Proxy
An implementation for
CfnResponseHeadersPolicy.ContentTypeOptionsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnResponseHeadersPolicy.ContentTypeOptionsProperty.Builder |
builder() |
Object |
getOverride()
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.
|
@Stability(value=Stable) @NotNull Object getOverride()
@Stability(value=Stable) static CfnResponseHeadersPolicy.ContentTypeOptionsProperty.Builder builder()
Copyright © 2022. All rights reserved.