DistributionCustomErrorResponse

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

Constructors

Link copied to clipboard
fun DistributionCustomErrorResponse(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

The 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

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

Link copied to clipboard
val responseCode: Int? = null

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

Link copied to clipboard

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