Starts at 0 for the initial request, which is not a "retry" by definition. 1 indicates the first retry.
the current count of retry.
RetryStrategies implemented by @smithy/core will return tokens with a
delay of zero.
This is because the RetryStrategy token acquisition methods took over the task of idling for the delay period. If a user-implemented retry token contains a delay, the default Smithy retry middleware will still honor it.
That is to say, you may either sleep within the RetryStrategy methods for acquiring the token, OR return a token with a retry delay that will cause the retry middleware to sleep.
the number of milliseconds to wait before retrying an action.
Optionaliswhether the operation which generated this token is long polling.
Delays that have already been executed by the time the token is accessible. This is needed for the token handler to understand what has happened.