Interface CfnResponseHeadersPolicy.ContentSecurityPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.Jsii$Proxy
- Enclosing class:
CfnResponseHeadersPolicy
@Stability(Stable)
public static interface CfnResponseHeadersPolicy.ContentSecurityPolicyProperty
extends software.amazon.jsii.JsiiSerializable
The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy
HTTP response header.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnResponseHeadersPolicy.ContentSecurityPolicyProperty
static final class
An implementation forCfnResponseHeadersPolicy.ContentSecurityPolicyProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The policy directives and their values that CloudFront includes as values for theContent-Security-Policy
HTTP response header.A Boolean that determines whether CloudFront overrides theContent-Security-Policy
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
-
getContentSecurityPolicy
The policy directives and their values that CloudFront includes as values for theContent-Security-Policy
HTTP response header. -
getOverride
A Boolean that determines whether CloudFront overrides theContent-Security-Policy
HTTP response header received from the origin with the one specified in this response headers policy. -
builder
-