# VpcOriginAttributes

The properties to import from the VPC origin.

- 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#L90)
- 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 vpcOriginAttributes: cloudfront.VpcOriginAttributes = {
  domainName: 'domainName',
  vpcOriginArn: 'vpcOriginArn',
  vpcOriginId: 'vpcOriginId',
};
```

## Properties

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

  **Default:** No domain name configured

- `vpcOriginArn`: string — The ARN of the VPC origin.

  **Default:** derived from `vpcOriginId`.

  At least one of vpcOriginArn and vpcOriginId must be provided.

- `vpcOriginId`: string — The ID of the VPC origin.

  **Default:** derived from `vpcOriginArn`.

  At least one of vpcOriginArn and vpcOriginId must be provided.
