customErrorResponses

@JvmName(name = "tiykbwhrfjnwdmsc")
suspend fun customErrorResponses(value: Output<List<DistributionCustomErrorResponseArgs>>)
@JvmName(name = "qakcaggnwcjarrjh")
suspend fun customErrorResponses(value: List<DistributionCustomErrorResponseArgs>?)

Parameters

value

A complex type that controls the following:

  • Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.

  • How long CloudFront caches HTTP status codes in the 4xx and 5xx range. For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide.


@JvmName(name = "vdthmllfhicxpmio")
suspend fun customErrorResponses(vararg values: Output<DistributionCustomErrorResponseArgs>)


@JvmName(name = "cyijlqbubulbjjco")
suspend fun customErrorResponses(values: List<Output<DistributionCustomErrorResponseArgs>>)
@JvmName(name = "gilbinlvruvhicgt")
suspend fun customErrorResponses(vararg values: DistributionCustomErrorResponseArgs)

Parameters

values

A complex type that controls the following:

  • Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.

  • How long CloudFront caches HTTP status codes in the 4xx and 5xx range. For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide.


@JvmName(name = "ipltxmpwyjiuqwcn")
suspend fun customErrorResponses(argument: List<suspend DistributionCustomErrorResponseArgsBuilder.() -> Unit>)
@JvmName(name = "tnbgexaupmsxiltr")
suspend fun customErrorResponses(vararg argument: suspend DistributionCustomErrorResponseArgsBuilder.() -> Unit)
@JvmName(name = "tcupkbehvlynxmov")
suspend fun customErrorResponses(argument: suspend DistributionCustomErrorResponseArgsBuilder.() -> Unit)

Parameters

argument

A complex type that controls the following:

  • Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.

  • How long CloudFront caches HTTP status codes in the 4xx and 5xx range. For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide.