# VpcOriginEndpoint

Represents the VPC origin endpoint.

- 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#L117)
- 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';
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';

declare const applicationLoadBalancer: elbv2.ApplicationLoadBalancer;
const vpcOriginEndpoint = cloudfront.VpcOriginEndpoint.applicationLoadBalancer(applicationLoadBalancer);
```

## Initializer

```ts
new VpcOriginEndpoint()
```

## Properties

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

  **Default:** No domain name configured

- `endpointArn`: string — The ARN of the CloudFront VPC origin endpoint configuration.

## Methods

- `applicationLoadBalancer(alb: IApplicationLoadBalancer): VpcOriginEndpoint // chainable` (static) — A VPC origin endpoint from an Application Load Balancer.

- `ec2Instance(instance: IInstance): VpcOriginEndpoint // chainable` (static) — A VPC origin endpoint from an EC2 instance.

- `networkLoadBalancer(nlb: INetworkLoadBalancer): VpcOriginEndpoint // chainable` (static) — A VPC origin endpoint from an Network Load Balancer.
