DistributionCustomErrorResponse

data class DistributionCustomErrorResponse(val errorCachingMinTtl: Int? = null, val errorCode: Int, val responseCode: Int? = null, val responsePagePath: String? = null)

Constructors

Link copied to clipboard
constructor(errorCachingMinTtl: Int? = null, errorCode: Int, responseCode: Int? = null, responsePagePath: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val errorCachingMinTtl: Int? = null

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.

Link copied to clipboard

4xx or 5xx HTTP status code that you want to customize.

Link copied to clipboard
val responseCode: Int? = null

HTTP status code that you want CloudFront to return with the custom error page to the viewer.

Link copied to clipboard

Path of the custom error page (for example, /custom_404.html).