aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
32 lines (31 loc) • 868 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;
/**
* Evaluate the target health
*
* @default - no health check configuration
*/
readonly evaluateTargetHealth?: boolean;
}