Interface CfnResponseHeadersPolicyPropsMixin.ContentSecurityPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicyPropsMixin.ContentSecurityPolicyProperty.Jsii$Proxy
- Enclosing class:
CfnResponseHeadersPolicyPropsMixin
@Stability(Stable)
public static interface CfnResponseHeadersPolicyPropsMixin.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.cfnpropertymixins.services.cloudfront.*;
ContentSecurityPolicyProperty contentSecurityPolicyProperty = ContentSecurityPolicyProperty.builder()
.contentSecurityPolicy("contentSecurityPolicy")
.override(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnResponseHeadersPolicyPropsMixin.ContentSecurityPolicyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe policy directives and their values that CloudFront includes as values for theContent-Security-PolicyHTTP response header.default ObjectA 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
@Stability(Stable) static CfnResponseHeadersPolicyPropsMixin.ContentSecurityPolicyProperty.Builder builder()
-