DistributionCustomErrorResponseArgs

data class DistributionCustomErrorResponseArgs(val errorCachingMinTtl: Output<Int>? = null, val errorCode: Output<Int>, val responseCode: Output<Int>? = null, val responsePagePath: Output<String>? = null) : ConvertibleToJava<DistributionCustomErrorResponseArgs>

Constructors

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

Properties

Link copied to clipboard
val errorCachingMinTtl: Output<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
val errorCode: Output<Int>

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

Link copied to clipboard
val responseCode: Output<Int>? = null

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

Link copied to clipboard
val responsePagePath: Output<String>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): DistributionCustomErrorResponseArgs