@Stability(value=Experimental) public static final class ErrorResponse.Builder extends Object implements software.amazon.jsii.Builder<ErrorResponse>
ErrorResponse| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ErrorResponse |
build()
Builds the configured instance.
|
ErrorResponse.Builder |
httpStatus(Number httpStatus)
Sets the value of
ErrorResponse.getHttpStatus() |
ErrorResponse.Builder |
responseHttpStatus(Number responseHttpStatus)
Sets the value of
ErrorResponse.getResponseHttpStatus() |
ErrorResponse.Builder |
responsePagePath(String responsePagePath)
Sets the value of
ErrorResponse.getResponsePagePath() |
ErrorResponse.Builder |
ttl(Duration ttl)
Sets the value of
ErrorResponse.getTtl() |
@Stability(value=Experimental) public ErrorResponse.Builder httpStatus(Number httpStatus)
ErrorResponse.getHttpStatus()httpStatus - The HTTP status code for which you want to specify a custom error page and/or a caching duration. This parameter is required.this@Stability(value=Experimental) public ErrorResponse.Builder responseHttpStatus(Number responseHttpStatus)
ErrorResponse.getResponseHttpStatus()responseHttpStatus - The 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 for responsePagePath.this@Stability(value=Experimental) public ErrorResponse.Builder responsePagePath(String responsePagePath)
ErrorResponse.getResponsePagePath()responsePagePath - 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.this@Stability(value=Experimental) public ErrorResponse.Builder ttl(Duration ttl)
ErrorResponse.getTtl()ttl - The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode.this@Stability(value=Experimental) public ErrorResponse build()
build in interface software.amazon.jsii.Builder<ErrorResponse>ErrorResponseNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.