Interface RestApiOriginProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,OriginOptions
- All Known Implementing Classes:
RestApiOriginProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.247Z")
@Stability(Stable)
public interface RestApiOriginProps
extends software.amazon.jsii.JsiiSerializable, OriginOptions
Properties for an Origin for an API Gateway REST API.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.origins.*;
import software.amazon.awscdk.core.*;
RestApiOriginProps restApiOriginProps = RestApiOriginProps.builder()
.connectionAttempts(123)
.connectionTimeout(Duration.minutes(30))
.customHeaders(Map.of(
"customHeadersKey", "customHeaders"))
.keepaliveTimeout(Duration.minutes(30))
.originShieldRegion("originShieldRegion")
.readTimeout(Duration.minutes(30))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRestApiOriginPropsstatic final classAn implementation forRestApiOriginProps -
Method Summary
Modifier and TypeMethodDescriptionstatic RestApiOriginProps.Builderbuilder()default DurationSpecifies how long, in seconds, CloudFront persists its connection to the origin.default DurationSpecifies how long, in seconds, CloudFront waits for a response from the origin, also known as the origin response timeout.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.cloudfront.OriginOptions
getConnectionAttempts, getConnectionTimeout, getCustomHeaders, getOriginShieldRegion
-
Method Details
-
getKeepaliveTimeout
Specifies how long, in seconds, CloudFront persists its connection to the origin.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)
-
getReadTimeout
Specifies how long, in seconds, CloudFront waits for a response from the origin, also known as the origin response timeout.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)
-
builder
- Returns:
- a
RestApiOriginProps.BuilderofRestApiOriginProps
-