StandardRetryPolicy

A basic retry policy for Smithy clients that defines which error conditions are retryable and how. This policy will evaluate the following exceptions as retryable:

  • Any ServiceException with an sdkErrorMetadata.errorType of:

  • ErrorType.Server (such as internal service errors)

  • ErrorType.Client (such as an invalid request, a resource not found, access denied, etc.)

  • Any SdkBaseException where sdkErrorMetadata.isRetryable is true (such as a client-side timeout, networking/socket error, etc.)

  • Any SdkBaseException where sdkErrorMetadata.isThrottling is true (such as making too many requests in a short amount of time)

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun evaluate(result: <Error class: unknown class><Any?>): RetryDirective

Evaluate the given retry attempt.