@Generated(value="jsii-pacmak/1.9.0 (build 5c646d5)", date="2020-07-28T21:12:28.808Z") @Stability(value=Experimental) public interface ErrorResponse extends software.amazon.jsii.JsiiSerializable
EXPERIMENTAL
| Modifier and Type | Interface and Description |
|---|---|
static class |
ErrorResponse.Builder
A builder for
ErrorResponse |
static class |
ErrorResponse.Jsii$Proxy
An implementation for
ErrorResponse |
| Modifier and Type | Method and Description |
|---|---|
static ErrorResponse.Builder |
builder() |
Number |
getHttpStatus()
The HTTP status code for which you want to specify a custom error page and/or a caching duration.
|
default Number |
getResponseHttpStatus()
The HTTP status code that you want CloudFront to return to the viewer along with the custom error page.
|
default String |
getResponsePagePath()
The path to the custom error page that you want CloudFront to return to a viewer when your origin returns the `httpStatus`, for example, /4xx-errors/403-forbidden.html.
|
default Duration |
getTtl()
The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode.
|
@Stability(value=Experimental) @NotNull Number getHttpStatus()
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default Number getResponseHttpStatus()
If you specify a value for responseHttpStatus, you must also specify a value for responsePagePath.
Default: - not set, the error code will be returned as the response code.
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default String getResponsePagePath()
Default: - the default CloudFront response is shown.
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default Duration getTtl()
Default: - the default caching TTL behavior applies
EXPERIMENTAL
@Stability(value=Experimental) static ErrorResponse.Builder builder()
ErrorResponse.Builder of ErrorResponseCopyright © 2020. All rights reserved.