public static final class CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.Builder
extends java.lang.Object
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty |
build()
Builds the configured instance.
|
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.Builder |
contentSecurityPolicy(java.lang.String contentSecurityPolicy)
|
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.Builder |
override(java.lang.Boolean override)
Sets the value of
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.getOverride() |
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.Builder |
override(IResolvable override)
Sets the value of
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.getOverride() |
public CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.Builder contentSecurityPolicy(java.lang.String contentSecurityPolicy)
contentSecurityPolicy
- The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header. This parameter is required.this
public CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.Builder override(java.lang.Boolean override)
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.getOverride()
override
- 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. This parameter is required.this
public CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.Builder override(IResolvable override)
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty.getOverride()
override
- 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. This parameter is required.this
public CfnResponseHeadersPolicy.ContentSecurityPolicyProperty build()
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty
java.lang.NullPointerException
- if any required attribute was not provided