# VpcOriginOptions

VPC origin endpoint configuration.

- Source: [`aws-cloudfront/lib/vpc-origin.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cloudfront/lib/vpc-origin.ts#L49)
- Type last changed: v2.180.0 · 21 Feb 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 vpcOriginOptions: cloudfront.VpcOriginOptions = {
  httpPort: 123,
  httpsPort: 123,
  originSslProtocols: [cloudfront.OriginSslPolicy.SSL_V3],
  protocolPolicy: cloudfront.OriginProtocolPolicy.HTTP_ONLY,
  vpcOriginName: 'vpcOriginName',
};
```

## Properties

- `httpPort`: number = 80 — The HTTP port for the CloudFront VPC origin endpoint configuration.

- `httpsPort`: number = 443 — The HTTPS port of the CloudFront VPC origin endpoint configuration.

- `originSslProtocols`: [OriginSslPolicy](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.OriginSslPolicy.html)[] = TLSv1.2 — A list that contains allowed SSL/TLS protocols for this distribution.

- `protocolPolicy`: [OriginProtocolPolicy](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.OriginProtocolPolicy.html) — The origin protocol policy for the CloudFront VPC origin endpoint configuration.

  **Default:** OriginProtocolPolicy.MATCH_VIEWER

- `vpcOriginName`: string — The name of the CloudFront VPC origin endpoint configuration.

  **Default:** generated from the `id`
