@Stability(value=Stable)
public static interface CfnResponseHeadersPolicy.ContentSecurityPolicyProperty
extends software.amazon.jsii.JsiiSerializable
For more information about the Content-Security-Policy HTTP response header, see Content-Security-Policy 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.*;
ContentSecurityPolicyProperty contentSecurityPolicyProperty = ContentSecurityPolicyProperty.builder()
.contentSecurityPolicy("contentSecurityPolicy")
.override(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.Builder
A builder for
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty |
static class |
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.Jsii$Proxy
An implementation for
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.Builder |
builder() |
String |
getContentSecurityPolicy()
The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
|
Object |
getOverride()
A Boolean that determines whether CloudFront overrides the `Content-Security-Policy` HTTP response header received from the origin with the one specified in this response headers policy.
|
@Stability(value=Stable) @NotNull String getContentSecurityPolicy()
@Stability(value=Stable) @NotNull Object getOverride()
@Stability(value=Stable) static CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.Builder builder()
Copyright © 2022. All rights reserved.