func (o *svcStopTaskOpts) stopTaskIds(sess *session.Session) error {
	tasksLen := strconv.Itoa(len(o.taskIDs))
	o.spinner.Start(fmt.Sprintf("Stopping %s task(s)", color.HighlightUserInput(tasksLen)))

	// Stop task based on taskArn
	if err := o.newTaskStopper(sess).StopTasksWithTaskIds(o.appName, o.envName, o.taskIDs, taskStopUserInitiated); err != nil {
		o.spinner.Stop(log.Serrorf("Error stopping running tasks in %s.\n", o.name))
		return fmt.Errorf("stop running tasks by ids %w", err)
	}

	o.spinner.Stop(log.Ssuccessln("Task(s) are stopped successfully"))

	return nil
}
// stopTaskIds will stop all tasks with the provided taskID
stopTaskIds will stop all tasks with the provided taskID
// stopTaskIds will stop all tasks with the provided taskID
func (o *svcStopTaskOpts) stopTaskIds(sess *session.Session) error {
	tasksLen := strconv.Itoa(len(o.taskIDs))
	o.spinner.Start(fmt.Sprintf("Stopping %s task(s)", color.HighlightUserInput(tasksLen)))
	if err := o.newTaskStopper(sess).StopTasksWithTaskIds(o.appName, o.envName, o.taskIDs, taskStopUserInitiated); err != nil {
		o.spinner.Stop(log.Serrorf("Error stopping running tasks in %s.\n", o.name))
		return fmt.Errorf("stop running tasks by ids %w", err)
	}
	o.spinner.Stop(log.Ssuccessln("Task(s) are stopped successfully"))
	return nil
}
func ( o * svcStopTaskOpts ) stopTaskIds ( sess * session . Session ) error { tasksLen := strconv . Itoa ( len ( o . taskIDs ) ) o . spinner . Start ( fmt . Sprintf ( " " , color . HighlightUserInput ( tasksLen ) ) ) if err := o . newTaskStopper ( sess ) . StopTasksWithTaskIds ( o . appName , o . envName , o . taskIDs , taskStopUserInitiated ) ; err != nil { o . spinner . Stop ( log . Serrorf ( " \n " , o . name ) ) return fmt . Errorf ( " " , err ) } o . spinner . Stop ( log . Ssuccessln ( " " ) ) return nil }
stopTaskIds will stop all tasks with the provided taskID
stopTaskIds will stop all tasks with the provided taskID
// Stop task based on taskArn