@Stability(value=Stable) public static final class RestApiOrigin.Builder extends Object implements software.amazon.jsii.Builder<RestApiOrigin>
RestApiOrigin.| Modifier and Type | Method and Description |
|---|---|
RestApiOrigin |
build() |
RestApiOrigin.Builder |
connectionAttempts(Number connectionAttempts)
The number of times that CloudFront attempts to connect to the origin;
|
RestApiOrigin.Builder |
connectionTimeout(Duration connectionTimeout)
The number of seconds that CloudFront waits when trying to establish a connection to the origin.
|
static RestApiOrigin.Builder |
create(RestApi restApi) |
RestApiOrigin.Builder |
customHeaders(Map<String,String> customHeaders)
A list of HTTP header names and values that CloudFront adds to requests it sends to the origin.
|
RestApiOrigin.Builder |
keepaliveTimeout(Duration keepaliveTimeout)
Specifies how long, in seconds, CloudFront persists its connection to the origin.
|
RestApiOrigin.Builder |
originShieldRegion(String originShieldRegion)
When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance.
|
RestApiOrigin.Builder |
readTimeout(Duration readTimeout)
Specifies how long, in seconds, CloudFront waits for a response from the origin, also known as the origin response timeout.
|
@Stability(value=Stable) public static RestApiOrigin.Builder create(RestApi restApi)
restApi - This parameter is required.RestApiOrigin.Builder.@Stability(value=Stable) public RestApiOrigin.Builder connectionAttempts(Number connectionAttempts)
valid values are 1, 2, or 3 attempts.
Default: 3
connectionAttempts - The number of times that CloudFront attempts to connect to the origin;. This parameter is required.this@Stability(value=Stable) public RestApiOrigin.Builder connectionTimeout(Duration connectionTimeout)
Valid values are 1-10 seconds, inclusive.
Default: Duration.seconds(10)
connectionTimeout - The number of seconds that CloudFront waits when trying to establish a connection to the origin. This parameter is required.this@Stability(value=Stable) public RestApiOrigin.Builder customHeaders(Map<String,String> customHeaders)
Default: {}
customHeaders - A list of HTTP header names and values that CloudFront adds to requests it sends to the origin. This parameter is required.this@Stability(value=Stable) public RestApiOrigin.Builder originShieldRegion(String originShieldRegion)
Default: - origin shield not enabled
originShieldRegion - When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance. This parameter is required.this@Stability(value=Stable) public RestApiOrigin.Builder keepaliveTimeout(Duration keepaliveTimeout)
The valid range is from 1 to 180 seconds, inclusive.
Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time.
Default: Duration.seconds(5)
keepaliveTimeout - Specifies how long, in seconds, CloudFront persists its connection to the origin. This parameter is required.this@Stability(value=Stable) public RestApiOrigin.Builder readTimeout(Duration readTimeout)
The valid range is from 1 to 180 seconds, inclusive.
Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time.
Default: Duration.seconds(30)
readTimeout - Specifies how long, in seconds, CloudFront waits for a response from the origin, also known as the origin response timeout. This parameter is required.this@Stability(value=Stable) public RestApiOrigin build()
build in interface software.amazon.jsii.Builder<RestApiOrigin>Copyright © 2022. All rights reserved.