31 lines
1.3 KiB
TypeScript
31 lines
1.3 KiB
TypeScript
import type { IAliasRecordTargetProps } from './shared';
|
|
import type * as route53 from '../../aws-route53';
|
|
import type { IAcceleratorRef } from '../../interfaces/generated/aws-globalaccelerator-interfaces.generated';
|
|
/**
|
|
* Use a Global Accelerator domain name as an alias record target.
|
|
*/
|
|
export declare class GlobalAcceleratorDomainTarget implements route53.IAliasRecordTarget {
|
|
private readonly acceleratorDomainName;
|
|
private readonly props?;
|
|
/**
|
|
* The hosted zone Id if using an alias record in Route53.
|
|
* This value never changes.
|
|
* Ref: https://docs.aws.amazon.com/general/latest/gr/global_accelerator.html
|
|
*/
|
|
static readonly GLOBAL_ACCELERATOR_ZONE_ID = "Z2BJ6XQ5FK7U4H";
|
|
/**
|
|
* Create an Alias Target for a Global Accelerator domain name.
|
|
*/
|
|
constructor(acceleratorDomainName: string, props?: IAliasRecordTargetProps | undefined);
|
|
bind(_record: route53.IRecordSet, _zone?: route53.IHostedZone): route53.AliasRecordTargetConfig;
|
|
}
|
|
/**
|
|
* Use a Global Accelerator instance domain name as an alias record target.
|
|
*/
|
|
export declare class GlobalAcceleratorTarget extends GlobalAcceleratorDomainTarget {
|
|
/**
|
|
* Create an Alias Target for a Global Accelerator instance.
|
|
*/
|
|
constructor(accelerator: IAcceleratorRef, props?: IAliasRecordTargetProps);
|
|
}
|