Interface ResponseHeadersPolicySecurityHeadersConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResponseHeadersPolicySecurityHeadersConfig.Builder,,ResponseHeadersPolicySecurityHeadersConfig> SdkBuilder<ResponseHeadersPolicySecurityHeadersConfig.Builder,,ResponseHeadersPolicySecurityHeadersConfig> SdkPojo
- Enclosing class:
ResponseHeadersPolicySecurityHeadersConfig
-
Method Summary
Modifier and TypeMethodDescriptioncontentSecurityPolicy(Consumer<ResponseHeadersPolicyContentSecurityPolicy.Builder> contentSecurityPolicy) The policy directives and their values that CloudFront includes as values for theContent-Security-PolicyHTTP response header.contentSecurityPolicy(ResponseHeadersPolicyContentSecurityPolicy contentSecurityPolicy) The policy directives and their values that CloudFront includes as values for theContent-Security-PolicyHTTP response header.contentTypeOptions(Consumer<ResponseHeadersPolicyContentTypeOptions.Builder> contentTypeOptions) Determines whether CloudFront includes theX-Content-Type-OptionsHTTP response header with its value set tonosniff.contentTypeOptions(ResponseHeadersPolicyContentTypeOptions contentTypeOptions) Determines whether CloudFront includes theX-Content-Type-OptionsHTTP response header with its value set tonosniff.frameOptions(Consumer<ResponseHeadersPolicyFrameOptions.Builder> frameOptions) Determines whether CloudFront includes theX-Frame-OptionsHTTP response header and the header's value.frameOptions(ResponseHeadersPolicyFrameOptions frameOptions) Determines whether CloudFront includes theX-Frame-OptionsHTTP response header and the header's value.referrerPolicy(Consumer<ResponseHeadersPolicyReferrerPolicy.Builder> referrerPolicy) Determines whether CloudFront includes theReferrer-PolicyHTTP response header and the header's value.referrerPolicy(ResponseHeadersPolicyReferrerPolicy referrerPolicy) Determines whether CloudFront includes theReferrer-PolicyHTTP response header and the header's value.strictTransportSecurity(Consumer<ResponseHeadersPolicyStrictTransportSecurity.Builder> strictTransportSecurity) Determines whether CloudFront includes theStrict-Transport-SecurityHTTP response header and the header's value.strictTransportSecurity(ResponseHeadersPolicyStrictTransportSecurity strictTransportSecurity) Determines whether CloudFront includes theStrict-Transport-SecurityHTTP response header and the header's value.xssProtection(Consumer<ResponseHeadersPolicyXSSProtection.Builder> xssProtection) Determines whether CloudFront includes theX-XSS-ProtectionHTTP response header and the header's value.xssProtection(ResponseHeadersPolicyXSSProtection xssProtection) Determines whether CloudFront includes theX-XSS-ProtectionHTTP response header and the header's value.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
xssProtection
ResponseHeadersPolicySecurityHeadersConfig.Builder xssProtection(ResponseHeadersPolicyXSSProtection xssProtection) Determines whether CloudFront includes the
X-XSS-ProtectionHTTP response header and the header's value.For more information about the
X-XSS-ProtectionHTTP response header, see X-XSS-Protection in the MDN Web Docs.- Parameters:
xssProtection- Determines whether CloudFront includes theX-XSS-ProtectionHTTP response header and the header's value.For more information about the
X-XSS-ProtectionHTTP response header, see X-XSS-Protection in the MDN Web Docs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
xssProtection
default ResponseHeadersPolicySecurityHeadersConfig.Builder xssProtection(Consumer<ResponseHeadersPolicyXSSProtection.Builder> xssProtection) Determines whether CloudFront includes the
X-XSS-ProtectionHTTP response header and the header's value.For more information about the
This is a convenience method that creates an instance of theX-XSS-ProtectionHTTP response header, see X-XSS-Protection in the MDN Web Docs.ResponseHeadersPolicyXSSProtection.Builderavoiding the need to create one manually viaResponseHeadersPolicyXSSProtection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toxssProtection(ResponseHeadersPolicyXSSProtection).- Parameters:
xssProtection- a consumer that will call methods onResponseHeadersPolicyXSSProtection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
frameOptions
ResponseHeadersPolicySecurityHeadersConfig.Builder frameOptions(ResponseHeadersPolicyFrameOptions frameOptions) Determines whether CloudFront includes the
X-Frame-OptionsHTTP response header and the header's value.For more information about the
X-Frame-OptionsHTTP response header, see X-Frame-Options in the MDN Web Docs.- Parameters:
frameOptions- Determines whether CloudFront includes theX-Frame-OptionsHTTP response header and the header's value.For more information about the
X-Frame-OptionsHTTP response header, see X-Frame-Options in the MDN Web Docs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
frameOptions
default ResponseHeadersPolicySecurityHeadersConfig.Builder frameOptions(Consumer<ResponseHeadersPolicyFrameOptions.Builder> frameOptions) Determines whether CloudFront includes the
X-Frame-OptionsHTTP response header and the header's value.For more information about the
This is a convenience method that creates an instance of theX-Frame-OptionsHTTP response header, see X-Frame-Options in the MDN Web Docs.ResponseHeadersPolicyFrameOptions.Builderavoiding the need to create one manually viaResponseHeadersPolicyFrameOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toframeOptions(ResponseHeadersPolicyFrameOptions).- Parameters:
frameOptions- a consumer that will call methods onResponseHeadersPolicyFrameOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
referrerPolicy
ResponseHeadersPolicySecurityHeadersConfig.Builder referrerPolicy(ResponseHeadersPolicyReferrerPolicy referrerPolicy) Determines whether CloudFront includes the
Referrer-PolicyHTTP response header and the header's value.For more information about the
Referrer-PolicyHTTP response header, see Referrer-Policy in the MDN Web Docs.- Parameters:
referrerPolicy- Determines whether CloudFront includes theReferrer-PolicyHTTP response header and the header's value.For more information about the
Referrer-PolicyHTTP response header, see Referrer-Policy in the MDN Web Docs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
referrerPolicy
default ResponseHeadersPolicySecurityHeadersConfig.Builder referrerPolicy(Consumer<ResponseHeadersPolicyReferrerPolicy.Builder> referrerPolicy) Determines whether CloudFront includes the
Referrer-PolicyHTTP response header and the header's value.For more information about the
This is a convenience method that creates an instance of theReferrer-PolicyHTTP response header, see Referrer-Policy in the MDN Web Docs.ResponseHeadersPolicyReferrerPolicy.Builderavoiding the need to create one manually viaResponseHeadersPolicyReferrerPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreferrerPolicy(ResponseHeadersPolicyReferrerPolicy).- Parameters:
referrerPolicy- a consumer that will call methods onResponseHeadersPolicyReferrerPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentSecurityPolicy
ResponseHeadersPolicySecurityHeadersConfig.Builder contentSecurityPolicy(ResponseHeadersPolicyContentSecurityPolicy contentSecurityPolicy) The policy directives and their values that CloudFront includes as values for the
Content-Security-PolicyHTTP response header.For more information about the
Content-Security-PolicyHTTP response header, see Content-Security-Policy in the MDN Web Docs.- Parameters:
contentSecurityPolicy- The policy directives and their values that CloudFront includes as values for theContent-Security-PolicyHTTP response header.For more information about the
Content-Security-PolicyHTTP response header, see Content-Security-Policy in the MDN Web Docs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentSecurityPolicy
default ResponseHeadersPolicySecurityHeadersConfig.Builder contentSecurityPolicy(Consumer<ResponseHeadersPolicyContentSecurityPolicy.Builder> contentSecurityPolicy) The policy directives and their values that CloudFront includes as values for the
Content-Security-PolicyHTTP response header.For more information about the
This is a convenience method that creates an instance of theContent-Security-PolicyHTTP response header, see Content-Security-Policy in the MDN Web Docs.ResponseHeadersPolicyContentSecurityPolicy.Builderavoiding the need to create one manually viaResponseHeadersPolicyContentSecurityPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontentSecurityPolicy(ResponseHeadersPolicyContentSecurityPolicy).- Parameters:
contentSecurityPolicy- a consumer that will call methods onResponseHeadersPolicyContentSecurityPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentTypeOptions
ResponseHeadersPolicySecurityHeadersConfig.Builder contentTypeOptions(ResponseHeadersPolicyContentTypeOptions contentTypeOptions) Determines whether CloudFront includes the
X-Content-Type-OptionsHTTP response header with its value set tonosniff.For more information about the
X-Content-Type-OptionsHTTP response header, see X-Content-Type-Options in the MDN Web Docs.- Parameters:
contentTypeOptions- Determines whether CloudFront includes theX-Content-Type-OptionsHTTP response header with its value set tonosniff.For more information about the
X-Content-Type-OptionsHTTP response header, see X-Content-Type-Options in the MDN Web Docs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentTypeOptions
default ResponseHeadersPolicySecurityHeadersConfig.Builder contentTypeOptions(Consumer<ResponseHeadersPolicyContentTypeOptions.Builder> contentTypeOptions) Determines whether CloudFront includes the
X-Content-Type-OptionsHTTP response header with its value set tonosniff.For more information about the
This is a convenience method that creates an instance of theX-Content-Type-OptionsHTTP response header, see X-Content-Type-Options in the MDN Web Docs.ResponseHeadersPolicyContentTypeOptions.Builderavoiding the need to create one manually viaResponseHeadersPolicyContentTypeOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontentTypeOptions(ResponseHeadersPolicyContentTypeOptions).- Parameters:
contentTypeOptions- a consumer that will call methods onResponseHeadersPolicyContentTypeOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
strictTransportSecurity
ResponseHeadersPolicySecurityHeadersConfig.Builder strictTransportSecurity(ResponseHeadersPolicyStrictTransportSecurity strictTransportSecurity) Determines whether CloudFront includes the
Strict-Transport-SecurityHTTP response header and the header's value.For more information about the
Strict-Transport-SecurityHTTP response header, see Security headers in the Amazon CloudFront Developer Guide and Strict-Transport-Security in the MDN Web Docs.- Parameters:
strictTransportSecurity- Determines whether CloudFront includes theStrict-Transport-SecurityHTTP response header and the header's value.For more information about the
Strict-Transport-SecurityHTTP response header, see Security headers in the Amazon CloudFront Developer Guide and Strict-Transport-Security in the MDN Web Docs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
strictTransportSecurity
default ResponseHeadersPolicySecurityHeadersConfig.Builder strictTransportSecurity(Consumer<ResponseHeadersPolicyStrictTransportSecurity.Builder> strictTransportSecurity) Determines whether CloudFront includes the
Strict-Transport-SecurityHTTP response header and the header's value.For more information about the
This is a convenience method that creates an instance of theStrict-Transport-SecurityHTTP response header, see Security headers in the Amazon CloudFront Developer Guide and Strict-Transport-Security in the MDN Web Docs.ResponseHeadersPolicyStrictTransportSecurity.Builderavoiding the need to create one manually viaResponseHeadersPolicyStrictTransportSecurity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostrictTransportSecurity(ResponseHeadersPolicyStrictTransportSecurity).- Parameters:
strictTransportSecurity- a consumer that will call methods onResponseHeadersPolicyStrictTransportSecurity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-