Interface CfnDistribution.VpcOriginConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDistribution.VpcOriginConfigProperty.Jsii$Proxy
- Enclosing class:
CfnDistribution
@Stability(Stable)
public static interface CfnDistribution.VpcOriginConfigProperty
extends software.amazon.jsii.JsiiSerializable
An Amazon CloudFront VPC origin configuration.
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.*;
VpcOriginConfigProperty vpcOriginConfigProperty = VpcOriginConfigProperty.builder()
.vpcOriginId("vpcOriginId")
// the properties below are optional
.originKeepaliveTimeout(123)
.originReadTimeout(123)
.ownerAccountId("ownerAccountId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDistribution.VpcOriginConfigPropertystatic final classAn implementation forCfnDistribution.VpcOriginConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberSpecifies how long, in seconds, CloudFront persists its connection to the origin.default NumberSpecifies how long, in seconds, CloudFront waits for a response from the origin.default StringThe account ID of the AWS account that owns the VPC origin.The VPC origin ID.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpcOriginId
The VPC origin ID.- See Also:
-
getOriginKeepaliveTimeout
Specifies how long, in seconds, CloudFront persists its connection to the origin.The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 5 seconds.
For more information, see Keep-alive timeout (custom origins only) in the Amazon CloudFront Developer Guide .
Default: - 5
- See Also:
-
getOriginReadTimeout
Specifies how long, in seconds, CloudFront waits for a response from the origin.This is also known as the origin response timeout . The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.
For more information, see Response timeout in the Amazon CloudFront Developer Guide .
Default: - 30
- See Also:
-
getOwnerAccountId
The account ID of the AWS account that owns the VPC origin.- See Also:
-
builder
-