GradientEdge CDK Utils
    Preparing search index...
    interface SfnRetryProps {
        backoffRate?: number;
        errors?: string[];
        interval?: Duration;
        intervalInSecs: number;
        jitterStrategy?: JitterType;
        maxAttempts?: number;
        maxDelay?: Duration;
    }

    Hierarchy

    • RetryProps
      • SfnRetryProps
    Index

    Properties

    backoffRate?: number

    Multiplication for how much longer the wait interval gets on every retry

    2
    
    errors?: string[]

    Errors to retry

    A list of error strings to retry, which can be either predefined errors (for example Errors.NoChoiceMatched) or a self-defined error.

    All errors
    
    interval?: Duration

    How many seconds to wait initially before retrying

    Duration.seconds(1)
    
    intervalInSecs: number
    jitterStrategy?: JitterType

    Introduces a randomization over the retry interval.

    - No jitter strategy
    
    maxAttempts?: number

    How many times to retry this particular error.

    May be 0 to disable retry for specific errors (in case you have a catch-all retry policy).

    3
    
    maxDelay?: Duration

    Maximum limit on retry interval growth during exponential backoff.

    - No max delay