customErrorResponses

@JvmName(name = "mprwtedmmwyukwfy")
suspend fun customErrorResponses(value: Output<List<DistributionCustomErrorResponseArgs>>)
@JvmName(name = "fjcnccgvxioaivdx")
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 = "qjcavvlujfxqardb")
suspend fun customErrorResponses(vararg values: Output<DistributionCustomErrorResponseArgs>)


@JvmName(name = "ponjgbldfduowhqr")
suspend fun customErrorResponses(values: List<Output<DistributionCustomErrorResponseArgs>>)
@JvmName(name = "vovoogxfdjmflevk")
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 = "oxraaxysxaahxpyt")
suspend fun customErrorResponses(argument: List<suspend DistributionCustomErrorResponseArgsBuilder.() -> Unit>)
@JvmName(name = "pctjaenqpmuplgpw")
suspend fun customErrorResponses(vararg argument: suspend DistributionCustomErrorResponseArgsBuilder.() -> Unit)
@JvmName(name = "vlkcllqlaffmvxhc")
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.