# Route53RecordTarget

Use another Route 53 record as an alias record target.

Extends: Route53RecordTarget
Implements: IAliasRecordTarget

- Source: [`aws-route53-targets/lib/route53-record.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-route53-targets/lib/route53-record.ts#L8)
- Type last changed: v2.177.0 · 25 Jan 2025

## Example

```ts
declare const zone: route53.HostedZone;
declare const record: route53.ARecord;
new route53.ARecord(this, 'AliasRecord', {
  zone,
  target: route53.RecordTarget.fromAlias(new targets.Route53RecordTarget(record)),
});
```

## Initializer

```ts
new Route53RecordTarget(record: IRecordSet)
```

## Methods

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