code: func (c *ECS) WaitUntilTasksNotPending(input *ecs.DescribeTasksInput) error {
  	waiterCfg := awswaiter.Config{
  		Operation:   "DescribeTasks",
  		Delay:       6,
  		MaxAttempts: 100,
  		Acceptors: []awswaiter.WaitAcceptor{
  			{
  				State:    "failure",
  				Matcher:  "pathAny",
  				Argument: "failures[].reason",
  				Expected: "MISSING",
  			},
  			{
  				State:    "success",
  				Matcher:  "pathAll",
  				Argument: "tasks[].lastStatus",
  				Expected: "RUNNING",
  			},
  			{
  				State:    "success",
  				Matcher:  "pathAll",
  				Argument: "tasks[].lastStatus",
  				Expected: "STOPPED",
  			},
  		},
  	}
  
  	w := awswaiter.Waiter{
  		Client: c.ECS,
  		Input:  input,
  		Config: waiterCfg,
  	}
  	return w.Wait()
  }
docs: // WaitUntilTasksNotPending waits until all the given tasks are either RUNNING
  // or STOPPED.