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