@Stability(value=Experimental) @Internal public static final class ErrorResponse.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ErrorResponse
ErrorResponsesoftware.amazon.jsii.JsiiObject.InitializationModeErrorResponse.Builder, ErrorResponse.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(Number httpStatus,
Number responseHttpStatus,
String responsePagePath,
Duration ttl)
Constructor that initializes the object based on literal property values passed by the
ErrorResponse.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Number |
getHttpStatus()
(experimental) The HTTP status code for which you want to specify a custom error page and/or a caching duration.
|
Number |
getResponseHttpStatus()
(experimental) The HTTP status code that you want CloudFront to return to the viewer along with the custom error page.
|
String |
getResponsePagePath()
(experimental) 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.
|
Duration |
getTtl()
(experimental) The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(Number httpStatus, Number responseHttpStatus, String responsePagePath, Duration ttl)
ErrorResponse.Builder.public final Number getHttpStatus()
ErrorResponsegetHttpStatus in interface ErrorResponsepublic final Number getResponseHttpStatus()
ErrorResponse
If you specify a value for responseHttpStatus, you must also specify a value for responsePagePath.
Default: - the error code will be returned as the response code.
getResponseHttpStatus in interface ErrorResponsepublic final String getResponsePagePath()
ErrorResponseDefault: - the default CloudFront response is shown.
getResponsePagePath in interface ErrorResponsepublic final Duration getTtl()
ErrorResponseDefault: - the default caching TTL behavior applies
getTtl in interface ErrorResponse@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.