UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

76 lines (75 loc) 1.97 kB
import { Construct } from 'constructs'; import { Listener, ListenerOptions } from './listener'; import * as cdk from '../../core'; /** * The interface of the Accelerator */ export interface IAccelerator extends cdk.IResource { /** * The ARN of the accelerator * * @attribute */ readonly acceleratorArn: string; /** * The Domain Name System (DNS) name that Global Accelerator creates that points to your accelerator's static * IP addresses. * * @attribute */ readonly dnsName: string; } /** * Construct properties of the Accelerator */ export interface AcceleratorProps { /** * The name of the accelerator * * @default - resource ID */ readonly acceleratorName?: string; /** * Indicates whether the accelerator is enabled. * * @default true */ readonly enabled?: boolean; } /** * Attributes required to import an existing accelerator to the stack */ export interface AcceleratorAttributes { /** * The ARN of the accelerator */ readonly acceleratorArn: string; /** * The DNS name of the accelerator */ readonly dnsName: string; } /** * The Accelerator construct */ export declare class Accelerator extends cdk.Resource implements IAccelerator { /** * import from attributes */ static fromAcceleratorAttributes(scope: Construct, id: string, attrs: AcceleratorAttributes): IAccelerator; /** * The ARN of the accelerator. */ readonly acceleratorArn: string; /** * The Domain Name System (DNS) name that Global Accelerator creates that points to your accelerator's static * IP addresses. */ readonly dnsName: string; constructor(scope: Construct, id: string, props?: AcceleratorProps); /** * Add a listener to the accelerator */ addListener(id: string, options: ListenerOptions): Listener; private validateAcceleratorName; }