Class ResponseHeadersPolicySecurityHeadersConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResponseHeadersPolicySecurityHeadersConfig.Builder,ResponseHeadersPolicySecurityHeadersConfig>
A configuration for a set of security-related HTTP response headers. CloudFront adds these headers to HTTP responses that it sends for requests that match a cache behavior associated with this response headers policy.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The policy directives and their values that CloudFront includes as values for theContent-Security-PolicyHTTP response header.Determines whether CloudFront includes theX-Content-Type-OptionsHTTP response header with its value set tonosniff.final booleanfinal booleanequalsBySdkFields(Object obj) Determines whether CloudFront includes theX-Frame-OptionsHTTP response header and the header's value.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()Determines whether CloudFront includes theReferrer-PolicyHTTP response header and the header's value.static Class<? extends ResponseHeadersPolicySecurityHeadersConfig.Builder>Determines whether CloudFront includes theStrict-Transport-SecurityHTTP response header and the header's value.final StringtoString()Returns a string representation of this object.Determines whether CloudFront includes theX-XSS-ProtectionHTTP response header and the header's value.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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.- Returns:
- 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.
-
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.- Returns:
- 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.
-
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.- Returns:
- 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.
-
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.- Returns:
- 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.
-
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.- Returns:
- 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.
-
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.- Returns:
- 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.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResponseHeadersPolicySecurityHeadersConfig.Builder,ResponseHeadersPolicySecurityHeadersConfig>
-
builder
-
serializableBuilderClass
public static Class<? extends ResponseHeadersPolicySecurityHeadersConfig.Builder> serializableBuilderClass() -
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-