This is the preferred interface for making CloudFront CustomErrorResponses with Fugue. If you want to manage a CloudFront CustomErrorResponse with Fugue, the new function is the right place to start.

Table of Contents

Module Members



new CloudFront CustomErrorResponse (Constructor)

Call this constructor to create a new Fugue.Core.AWS.CloudFront.CustomErrorResponse value.

Type Signature

 fun { errorCode: Int,
       responsePagePath: Optional<String>,
       responseCode: Optional<String>,
       errorCachingMinTTL: Optional<Int> } -> CustomErrorResponse
Argument: errorCode

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

Type: Int

Argument: responsePagePath

The path of the custom error page (for example, /custom_404.html). The path is relative to the distribution and must begin with a slash (/).

Type: Optional<String>

Argument: responseCode

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

Type: Optional<String>

Argument: errorCachingMinTTL

The minimum amount of time (in seconds) you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. You can specify a value from 0 to 31,536,000.

Type: Optional<Int>


A Fugue.Core.AWS.CloudFront.CustomErrorResponse value.

Type: CustomErrorResponse