@aws-cdk/aws-route53
Version:
The CDK Construct Library for AWS::Route53
26 lines (25 loc) • 718 B
TypeScript
import { IHostedZone } from './hosted-zone-ref';
import { IRecordSet } from './record-set';
/**
* Classes that are valid alias record targets, like CloudFront distributions and load
* balancers, should implement this interface.
*/
export interface IAliasRecordTarget {
/**
* Return hosted zone ID and DNS name, usable for Route53 alias targets
*/
bind(record: IRecordSet, zone?: IHostedZone): AliasRecordTargetConfig;
}
/**
* Represents the properties of an alias target destination.
*/
export interface AliasRecordTargetConfig {
/**
* Hosted zone ID of the target
*/
readonly hostedZoneId: string;
/**
* DNS name of the target
*/
readonly dnsName: string;
}