Class DistributionCustomErrorResponse


  • public final class DistributionCustomErrorResponse
    extends java.lang.Object
    • Method Detail

      • errorCachingMinTtl

        public java.util.Optional<java.lang.Integer> errorCachingMinTtl()
        Returns:
        Minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.
      • errorCode

        public java.lang.Integer errorCode()
        Returns:
        4xx or 5xx HTTP status code that you want to customize.
      • responseCode

        public java.util.Optional<java.lang.Integer> responseCode()
        Returns:
        HTTP status code that you want CloudFront to return with the custom error page to the viewer.
      • responsePagePath

        public java.util.Optional<java.lang.String> responsePagePath()
        Returns:
        Path of the custom error page (for example, `/custom_404.html`).