RetryProps

class aws_cdk.aws_stepfunctions.RetryProps(*, backoff_rate=None, errors=None, interval=None, max_attempts=None)

Bases: object

__init__(*, backoff_rate=None, errors=None, interval=None, max_attempts=None)

Retry details.

Parameters
  • backoff_rate (Union[int, float, None]) – Multiplication for how much longer the wait interval gets on every retry. Default: 2

  • errors (Optional[List[str]]) – 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. Default: All errors

  • interval (Optional[Duration]) – How many seconds to wait initially before retrying. Default: Duration.seconds(1)

  • max_attempts (Union[int, float, None]) – 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). Default: 3

stability :stability: experimental

Attributes

backoff_rate

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

default :default: 2

stability :stability: experimental

Return type

Union[int, float, None]

errors

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.

default :default: All errors

stability :stability: experimental

Return type

Optional[List[str]]

interval

How many seconds to wait initially before retrying.

default :default: Duration.seconds(1)

stability :stability: experimental

Return type

Optional[Duration]

max_attempts

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).

default :default: 3

stability :stability: experimental

Return type

Union[int, float, None]