UNPKG

718 BTypeScriptView Raw
1import { IHostedZone } from './hosted-zone-ref';
2import { IRecordSet } from './record-set';
3/**
4 * Classes that are valid alias record targets, like CloudFront distributions and load
5 * balancers, should implement this interface.
6 */
7export interface IAliasRecordTarget {
8 /**
9 * Return hosted zone ID and DNS name, usable for Route53 alias targets
10 */
11 bind(record: IRecordSet, zone?: IHostedZone): AliasRecordTargetConfig;
12}
13/**
14 * Represents the properties of an alias target destination.
15 */
16export interface AliasRecordTargetConfig {
17 /**
18 * Hosted zone ID of the target
19 */
20 readonly hostedZoneId: string;
21 /**
22 * DNS name of the target
23 */
24 readonly dnsName: string;
25}