# VpcOriginProps

VPC origin endpoint configuration.

Extends: VpcOriginProps
Extends: VpcOriginOptions
Used as props by: VpcOrigin

- Source: [`aws-cloudfront/lib/vpc-origin.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-cloudfront/lib/vpc-origin.ts#L80)
- 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';

declare const vpcOriginEndpoint: cloudfront.VpcOriginEndpoint;
const vpcOriginProps: cloudfront.VpcOriginProps = {
  endpoint: vpcOriginEndpoint,

  // the properties below are optional
  httpPort: 123,
  httpsPort: 123,
  originSslProtocols: [cloudfront.OriginSslPolicy.SSL_V3],
  protocolPolicy: cloudfront.OriginProtocolPolicy.HTTP_ONLY,
  vpcOriginName: 'vpcOriginName',
};
```

## Properties

- `endpoint`: [VpcOriginEndpoint](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.VpcOriginEndpoint.html) (required) — The VPC origin endpoint.

- `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) = OriginProtocolPolicy.MATCH_VIEWER — The origin protocol policy for the CloudFront VPC origin endpoint configuration.

  **Default:** OriginProtocolPolicy.MATCH_VIEWER

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