Interface CfnResponseHeadersPolicy.StrictTransportSecurityProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Jsii$Proxy
Enclosing class:
CfnResponseHeadersPolicy

@Stability(Stable) public static interface CfnResponseHeadersPolicy.StrictTransportSecurityProperty extends software.amazon.jsii.JsiiSerializable
Determines whether CloudFront includes the Strict-Transport-Security HTTP response header and the header's value.

For more information about the Strict-Transport-Security HTTP response header, see Strict-Transport-Security in the MDN Web Docs.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.cloudfront.*;
 StrictTransportSecurityProperty strictTransportSecurityProperty = StrictTransportSecurityProperty.builder()
         .accessControlMaxAgeSec(123)
         .override(false)
         // the properties below are optional
         .includeSubdomains(false)
         .preload(false)
         .build();
 
  • Method Details

    • getAccessControlMaxAgeSec

      @Stability(Stable) @NotNull Number getAccessControlMaxAgeSec()
      A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
    • getOverride

      @Stability(Stable) @NotNull Object getOverride()
      A Boolean that determines whether CloudFront overrides the Strict-Transport-Security HTTP response header received from the origin with the one specified in this response headers policy.
    • getIncludeSubdomains

      @Stability(Stable) @Nullable default Object getIncludeSubdomains()
      A Boolean that determines whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.
    • getPreload

      @Stability(Stable) @Nullable default Object getPreload()
      A Boolean that determines whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.
    • builder

      Returns:
      a CfnResponseHeadersPolicy.StrictTransportSecurityProperty.Builder of CfnResponseHeadersPolicy.StrictTransportSecurityProperty