Interface VpcOriginProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,OriginOptions,OriginProps
- All Known Subinterfaces:
VpcOriginWithEndpointProps
- All Known Implementing Classes:
VpcOriginProps.Jsii$Proxy,VpcOriginWithEndpointProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.cloudfront.origins.*;
VpcOriginProps vpcOriginProps = VpcOriginProps.builder()
.connectionAttempts(123)
.connectionTimeout(Duration.minutes(30))
.customHeaders(Map.of(
"customHeadersKey", "customHeaders"))
.domainName("domainName")
.keepaliveTimeout(Duration.minutes(30))
.originAccessControlId("originAccessControlId")
.originId("originId")
.originPath("originPath")
.originShieldEnabled(false)
.originShieldRegion("originShieldRegion")
.readTimeout(Duration.minutes(30))
.responseCompletionTimeout(Duration.minutes(30))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVpcOriginPropsstatic final classAn implementation forVpcOriginProps -
Method Summary
Modifier and TypeMethodDescriptionstatic VpcOriginProps.Builderbuilder()default StringThe domain name associated with your VPC origin.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, getOriginAccessControlId, getOriginId, getOriginShieldEnabled, getOriginShieldRegion, getResponseCompletionTimeoutMethods inherited from interface software.amazon.awscdk.services.cloudfront.OriginProps
getOriginPath
-
Method Details
-
getDomainName
The domain name associated with your VPC origin.Default: - The default domain name of the endpoint.
-
getKeepaliveTimeout
Specifies how long, in seconds, CloudFront persists its connection to the origin.The minimum is 1 second. The maximum is governed by the keep-alive timeout per origin quota, which is adjustable, so the effective maximum depends on the target account.
The default quota allows up to 300 seconds; higher values require an approved limit increase in the target account, and otherwise 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 minimum is 1 second. The maximum is governed by the origin response timeout quota, which is adjustable, so the effective maximum depends on the target account.
The default quota allows up to 120 seconds; higher values require an approved limit increase in the target account, and otherwise produce an error at deploy time.
Default: Duration.seconds(30)
-
builder
- Returns:
- a
VpcOriginProps.BuilderofVpcOriginProps
-