customErrorResponses

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


@JvmName(name = "cfymfcxxyqjusjhu")
suspend fun customErrorResponses(values: List<Output<DistributionCustomErrorResponseArgs>>)
@JvmName(name = "avmxgdpapmsfwbso")
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 = "feblrrhgbxyttyql")
suspend fun customErrorResponses(argument: List<suspend DistributionCustomErrorResponseArgsBuilder.() -> Unit>)
@JvmName(name = "bftunkceiqmrdeiv")
suspend fun customErrorResponses(vararg argument: suspend DistributionCustomErrorResponseArgsBuilder.() -> Unit)
@JvmName(name = "rwnqnegopccgimki")
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.