Interface ResponseHeadersPolicyContentSecurityPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResponseHeadersPolicyContentSecurityPolicy.Builder,
,ResponseHeadersPolicyContentSecurityPolicy> SdkBuilder<ResponseHeadersPolicyContentSecurityPolicy.Builder,
,ResponseHeadersPolicyContentSecurityPolicy> SdkPojo
- Enclosing class:
ResponseHeadersPolicyContentSecurityPolicy
public static interface ResponseHeadersPolicyContentSecurityPolicy.Builder
extends SdkPojo, CopyableBuilder<ResponseHeadersPolicyContentSecurityPolicy.Builder,ResponseHeadersPolicyContentSecurityPolicy>
-
Method Summary
Modifier and TypeMethodDescriptioncontentSecurityPolicy
(String contentSecurityPolicy) 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.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.- Parameters:
override
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentSecurityPolicy
ResponseHeadersPolicyContentSecurityPolicy.Builder contentSecurityPolicy(String contentSecurityPolicy) The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy
HTTP response header.- Parameters:
contentSecurityPolicy
- The policy directives and their values that CloudFront includes as values for theContent-Security-Policy
HTTP response header.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-