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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnResponseHeadersPolicy.ContentSecurityPolicyPropertystatic final classAn implementation forCfnResponseHeadersPolicy.ContentSecurityPolicyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The policy directives and their values that CloudFront includes as values for theContent-Security-PolicyHTTP response header.A Boolean that determines whether CloudFront overrides theContent-Security-PolicyHTTP 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-PolicyHTTP response header.- See Also:
-
getOverride
A Boolean that determines whether CloudFront overrides theContent-Security-PolicyHTTP response header received from the origin with the one specified in this response headers policy.Returns union: either
BooleanorIResolvable- See Also:
-
builder
-