Class CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicy.SecurityHeadersConfigProperty>
- Enclosing interface:
CfnResponseHeadersPolicy.SecurityHeadersConfigProperty
@Stability(Stable)
public static final class CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicy.SecurityHeadersConfigProperty>
A builder for
CfnResponseHeadersPolicy.SecurityHeadersConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.contentSecurityPolicy
(IResolvable contentSecurityPolicy) contentSecurityPolicy
(CfnResponseHeadersPolicy.ContentSecurityPolicyProperty contentSecurityPolicy) contentTypeOptions
(IResolvable contentTypeOptions) contentTypeOptions
(CfnResponseHeadersPolicy.ContentTypeOptionsProperty contentTypeOptions) frameOptions
(IResolvable frameOptions) Sets the value ofCfnResponseHeadersPolicy.SecurityHeadersConfigProperty.getFrameOptions()
frameOptions
(CfnResponseHeadersPolicy.FrameOptionsProperty frameOptions) Sets the value ofCfnResponseHeadersPolicy.SecurityHeadersConfigProperty.getFrameOptions()
referrerPolicy
(IResolvable referrerPolicy) referrerPolicy
(CfnResponseHeadersPolicy.ReferrerPolicyProperty referrerPolicy) strictTransportSecurity
(IResolvable strictTransportSecurity) strictTransportSecurity
(CfnResponseHeadersPolicy.StrictTransportSecurityProperty strictTransportSecurity) xssProtection
(IResolvable xssProtection) xssProtection
(CfnResponseHeadersPolicy.XSSProtectionProperty xssProtection)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contentSecurityPolicy
@Stability(Stable) public CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder contentSecurityPolicy(IResolvable contentSecurityPolicy) - Parameters:
contentSecurityPolicy
- The policy directives and their values that CloudFront includes as values for theContent-Security-Policy
HTTP response header. For more information about theContent-Security-Policy
HTTP response header, see Content-Security-Policy in the MDN Web Docs.- Returns:
this
-
contentSecurityPolicy
@Stability(Stable) public CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder contentSecurityPolicy(CfnResponseHeadersPolicy.ContentSecurityPolicyProperty contentSecurityPolicy) - Parameters:
contentSecurityPolicy
- The policy directives and their values that CloudFront includes as values for theContent-Security-Policy
HTTP response header. For more information about theContent-Security-Policy
HTTP response header, see Content-Security-Policy in the MDN Web Docs.- Returns:
this
-
contentTypeOptions
@Stability(Stable) public CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder contentTypeOptions(IResolvable contentTypeOptions) - Parameters:
contentTypeOptions
- Determines whether CloudFront includes theX-Content-Type-Options
HTTP response header with its value set tonosniff
. For more information about theX-Content-Type-Options
HTTP response header, see X-Content-Type-Options in the MDN Web Docs.- Returns:
this
-
contentTypeOptions
@Stability(Stable) public CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder contentTypeOptions(CfnResponseHeadersPolicy.ContentTypeOptionsProperty contentTypeOptions) - Parameters:
contentTypeOptions
- Determines whether CloudFront includes theX-Content-Type-Options
HTTP response header with its value set tonosniff
. For more information about theX-Content-Type-Options
HTTP response header, see X-Content-Type-Options in the MDN Web Docs.- Returns:
this
-
frameOptions
@Stability(Stable) public CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder frameOptions(IResolvable frameOptions) Sets the value ofCfnResponseHeadersPolicy.SecurityHeadersConfigProperty.getFrameOptions()
- Parameters:
frameOptions
- Determines whether CloudFront includes theX-Frame-Options
HTTP response header and the header's value. For more information about theX-Frame-Options
HTTP response header, see X-Frame-Options in the MDN Web Docs.- Returns:
this
-
frameOptions
@Stability(Stable) public CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder frameOptions(CfnResponseHeadersPolicy.FrameOptionsProperty frameOptions) Sets the value ofCfnResponseHeadersPolicy.SecurityHeadersConfigProperty.getFrameOptions()
- Parameters:
frameOptions
- Determines whether CloudFront includes theX-Frame-Options
HTTP response header and the header's value. For more information about theX-Frame-Options
HTTP response header, see X-Frame-Options in the MDN Web Docs.- Returns:
this
-
referrerPolicy
@Stability(Stable) public CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder referrerPolicy(IResolvable referrerPolicy) - Parameters:
referrerPolicy
- Determines whether CloudFront includes theReferrer-Policy
HTTP response header and the header's value. For more information about theReferrer-Policy
HTTP response header, see Referrer-Policy in the MDN Web Docs.- Returns:
this
-
referrerPolicy
@Stability(Stable) public CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder referrerPolicy(CfnResponseHeadersPolicy.ReferrerPolicyProperty referrerPolicy) - Parameters:
referrerPolicy
- Determines whether CloudFront includes theReferrer-Policy
HTTP response header and the header's value. For more information about theReferrer-Policy
HTTP response header, see Referrer-Policy in the MDN Web Docs.- Returns:
this
-
strictTransportSecurity
@Stability(Stable) public CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder strictTransportSecurity(IResolvable strictTransportSecurity) Sets the value ofCfnResponseHeadersPolicy.SecurityHeadersConfigProperty.getStrictTransportSecurity()
- Parameters:
strictTransportSecurity
- Determines whether CloudFront includes theStrict-Transport-Security
HTTP response header and the header's value. For more information about theStrict-Transport-Security
HTTP response header, see Strict-Transport-Security in the MDN Web Docs.- Returns:
this
-
strictTransportSecurity
@Stability(Stable) public CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder strictTransportSecurity(CfnResponseHeadersPolicy.StrictTransportSecurityProperty strictTransportSecurity) Sets the value ofCfnResponseHeadersPolicy.SecurityHeadersConfigProperty.getStrictTransportSecurity()
- Parameters:
strictTransportSecurity
- Determines whether CloudFront includes theStrict-Transport-Security
HTTP response header and the header's value. For more information about theStrict-Transport-Security
HTTP response header, see Strict-Transport-Security in the MDN Web Docs.- Returns:
this
-
xssProtection
@Stability(Stable) public CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder xssProtection(IResolvable xssProtection) - Parameters:
xssProtection
- Determines whether CloudFront includes theX-XSS-Protection
HTTP response header and the header's value. For more information about theX-XSS-Protection
HTTP response header, see X-XSS-Protection in the MDN Web Docs.- Returns:
this
-
xssProtection
@Stability(Stable) public CfnResponseHeadersPolicy.SecurityHeadersConfigProperty.Builder xssProtection(CfnResponseHeadersPolicy.XSSProtectionProperty xssProtection) - Parameters:
xssProtection
- Determines whether CloudFront includes theX-XSS-Protection
HTTP response header and the header's value. For more information about theX-XSS-Protection
HTTP response header, see X-XSS-Protection in the MDN Web Docs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResponseHeadersPolicy.SecurityHeadersConfigProperty>
- Returns:
- a new instance of
CfnResponseHeadersPolicy.SecurityHeadersConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-