

# VpcOriginConfig

An Amazon CloudFront VPC origin configuration.

## Contents
<a name="API_VpcOriginConfig_Contents"></a>

 ** VpcOriginId **   <a name="cloudfront-Type-VpcOriginConfig-VpcOriginId"></a>
The VPC origin ID.  
Type: String  
Required: Yes

 ** OriginHttpVersion **   <a name="cloudfront-Type-VpcOriginConfig-OriginHttpVersion"></a>
The HTTP version that CloudFront uses for connections to your VPC origin. Valid values are `http1.1` and `http2`. With `http2`, CloudFront negotiates HTTP/2 with the origin and falls back to HTTP/1.1 if the origin doesn't support HTTP/2. CloudFront uses HTTP/2 only over TLS 1.2 or later. If you don't specify a value, CloudFront uses HTTP/1.1.  
Type: String  
Valid Values: `http1.1 | http2`   
Required: No

 ** OriginKeepaliveTimeout **   <a name="cloudfront-Type-VpcOriginConfig-OriginKeepaliveTimeout"></a>
Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 300 seconds, and the default (if you don't specify otherwise) is 5 seconds.  
For more information, see [Keep-alive timeout (custom origins only)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginKeepaliveTimeout) in the *Amazon CloudFront Developer Guide*.  
Type: Integer  
Required: No

 ** OriginReadTimeout **   <a name="cloudfront-Type-VpcOriginConfig-OriginReadTimeout"></a>
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](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout) in the *Amazon CloudFront Developer Guide*.  
Type: Integer  
Required: No

 ** OwnerAccountId **   <a name="cloudfront-Type-VpcOriginConfig-OwnerAccountId"></a>
The account ID of the AWS account that owns the VPC origin.  
Type: String  
Required: No

## See Also
<a name="API_VpcOriginConfig_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/cloudfront-2020-05-31/VpcOriginConfig) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/cloudfront-2020-05-31/VpcOriginConfig) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/cloudfront-2020-05-31/VpcOriginConfig) 