ServiceTaskSpecRestartPolicy constructor

const ServiceTaskSpecRestartPolicy({
  1. Input<String?>? condition,
  2. Input<String?>? delay,
  3. Input<int?>? maxAttempts,
  4. Input<String?>? window,
})

Creates a new ServiceTaskSpecRestartPolicy. condition Condition for restart delay Delay between restart attempts (ms|s|m|h) maxAttempts Maximum attempts to restart a given container before giving up (default value is 0, which is ignored) window The time window used to evaluate the restart policy (default value is 0, which is unbounded) (ms|s|m|h)

Implementation

const ServiceTaskSpecRestartPolicy({
  this.condition,
  this.delay,
  this.maxAttempts,
  this.window,
});