Module @aws-accelerator/utils
Functions
delay
- delay(ms: number): Promise<any>
Parameters
Returns Promise<any>
Const isThrottlingError
- isThrottlingError(e: any): boolean
Parameters
Returns boolean
throttlingBackOff
- throttlingBackOff<T>(request: () => Promise<T>, options?: Partial<Omit<IBackOffOptions, "retry">>): Promise<T>
Type parameters
Parameters
request: () => Promise<T>
Optional options: Partial<Omit<IBackOffOptions, "retry">>
Returns Promise<T>
Auxiliary function to retry AWS SDK calls when a throttling error occurs.