# VpcOriginConfigProperty

An Amazon CloudFront VPC origin configuration.

- Source: Generated code
- Type last changed: v2.223.0 · 10 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const vpcOriginConfigProperty: cloudfront.CfnDistribution.VpcOriginConfigProperty = {
  vpcOriginId: 'vpcOriginId',

  // the properties below are optional
  originKeepaliveTimeout: 123,
  originReadTimeout: 123,
  ownerAccountId: 'ownerAccountId',
};
```

## Properties

- `originKeepaliveTimeout`: number = 5 — 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)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginKeepaliveTimeout) in the *Amazon CloudFront Developer Guide* .

- `originReadTimeout`: number = 30 — 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* .

- `ownerAccountId`: string — The account ID of the AWS account that owns the VPC origin.

- `vpcOriginId`: string (required) — The VPC origin ID.
