UNPKG

@smithy/types

Version:

[![NPM version](https://img.shields.io/npm/v/@smithy/types/latest.svg)](https://www.npmjs.com/package/@smithy/types) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/types.svg)](https://www.npmjs.com/package/@smithy/types)

36 lines (35 loc) 1.25 kB
import { AbortController as DeprecatedAbortController } from "./abort"; /** * @public */ export interface WaiterConfiguration<Client> { /** * Required service client */ client: Client; /** * The amount of time in seconds a user is willing to wait for a waiter to complete. */ maxWaitTime: number; /** * @deprecated Use abortSignal * Abort controller. Used for ending the waiter early. */ abortController?: AbortController | DeprecatedAbortController; /** * Abort Signal. Used for ending the waiter early. */ abortSignal?: AbortController["signal"] | DeprecatedAbortController["signal"]; /** * The minimum amount of time to delay between retries in seconds. This is the * floor of the exponential backoff. This value defaults to service default * if not specified. This value MUST be less than or equal to maxDelay and greater than 0. */ minDelay?: number; /** * The maximum amount of time to delay between retries in seconds. This is the * ceiling of the exponential backoff. This value defaults to service default * if not specified. If specified, this value MUST be greater than or equal to 1. */ maxDelay?: number; }