public static interface CfnResponseHeadersPolicy.ContentSecurityPolicyProperty
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() |
java.lang.String |
getContentSecurityPolicy()
The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
|
java.lang.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.
|
java.lang.String getContentSecurityPolicy()
java.lang.Object getOverride()