Class ErrorResponse.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.ErrorResponse.Jsii$Proxy
- All Implemented Interfaces:
ErrorResponse,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
ErrorResponse
@Stability(Stable)
@Internal
public static final class ErrorResponse.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements ErrorResponse
An implementation for
ErrorResponse-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.ErrorResponse
ErrorResponse.Builder, ErrorResponse.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(ErrorResponse.Builder builder) Constructor that initializes the object based on literal property values passed by theErrorResponse.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal NumberThe HTTP status code for which you want to specify a custom error page and/or a caching duration.final NumberThe HTTP status code that you want CloudFront to return to the viewer along with the custom error page.final StringThe path to the custom error page that you want CloudFront to return to a viewer when your origin returns thehttpStatus, for example, /4xx-errors/403-forbidden.html.final DurationgetTtl()The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theErrorResponse.Builder.
-
-
Method Details
-
getHttpStatus
Description copied from interface:ErrorResponseThe HTTP status code for which you want to specify a custom error page and/or a caching duration.- Specified by:
getHttpStatusin interfaceErrorResponse
-
getResponseHttpStatus
Description copied from interface:ErrorResponseThe HTTP status code that you want CloudFront to return to the viewer along with the custom error page.If you specify a value for
responseHttpStatus, you must also specify a value forresponsePagePath.Default: - the error code will be returned as the response code.
- Specified by:
getResponseHttpStatusin interfaceErrorResponse
-
getResponsePagePath
Description copied from interface:ErrorResponseThe path to the custom error page that you want CloudFront to return to a viewer when your origin returns thehttpStatus, for example, /4xx-errors/403-forbidden.html.Default: - the default CloudFront response is shown.
- Specified by:
getResponsePagePathin interfaceErrorResponse
-
getTtl
Description copied from interface:ErrorResponseThe minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode.Default: - the default caching TTL behavior applies
- Specified by:
getTtlin interfaceErrorResponse
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-