LifecyclePolicy constructor

const LifecyclePolicy({
  1. Input<LifecyclePolicyAction>? action,
  2. Input<ActionCondition>? actionCondition,
})

Creates a new LifecyclePolicy. action Action to execute when ActionCondition is true. When RETRY_TASK is specified, we will retry failed tasks if we notice any exit code match and fail tasks if no match is found. Likewise, when FAIL_TASK is specified, we will fail tasks if we notice any exit code match and retry tasks if no match is found. actionCondition Conditions that decide why a task failure is dealt with a specific action.

Implementation

const LifecyclePolicy({
  this.action,
  this.actionCondition,
});