# InterfaceVpcEndpointTarget

Set an InterfaceVpcEndpoint as a target for an ARecord.

Extends: InterfaceVpcEndpointTarget
Implements: IAliasRecordTarget

- Source: [`aws-route53-targets/lib/interface-vpc-endpoint-target.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-route53-targets/lib/interface-vpc-endpoint-target.ts#L8)
- Type last changed: v2.38.0 · 17 Aug 2022

## Example

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

declare const zone: route53.HostedZone;
declare const interfaceVpcEndpoint: ec2.InterfaceVpcEndpoint;

new route53.ARecord(this, 'AliasRecord', {
  zone,
  target: route53.RecordTarget.fromAlias(new targets.InterfaceVpcEndpointTarget(interfaceVpcEndpoint)),
});
```

## Initializer

```ts
new InterfaceVpcEndpointTarget(vpcEndpoint: InterfaceVpcEndpoint)
```

## Methods

- `bind(_record: IRecordSet, _zone?: IHostedZone): AliasRecordTargetConfig` — Return hosted zone ID and DNS name, usable for Route53 alias targets.
