# VpcLinkAttributes

Attributes when importing a new VpcLink.

- Source: [`aws-apigatewayv2/lib/http/vpc-link.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/vpc-link.ts#L59)
- Type last changed: v2.112.0 · 1 Dec 2023

## Example

```ts
import * as ec2 from 'aws-cdk-lib/aws-ec2';

declare const vpc: ec2.Vpc;
const awesomeLink = apigwv2.VpcLink.fromVpcLinkAttributes(this, 'awesome-vpc-link', {
  vpcLinkId: 'us-east-1_oiuR12Abd',
  vpc,
});
```

## Properties

- `vpc`: [IVpc](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html) (required) — The VPC to which this VPC link is associated with.

- `vpcLinkId`: string (required) — The VPC Link id.
