copy_task_definitions#

ProjectApi.copy_task_definitions(task_definitions, wait=True)#

Create task definitions by copying existing task definitions.

Return type:

Union[str, List[str]]

Parameters:
task_definitionsList[TaskDefinition]

List of task definitions. Note that only the id field of the TaskDefinition objects must be filled. Other fields can be empty.

waitbool

Whether to wait for the copy to complete. The default is True.

Returns:
Union[List[str], str]

If wait=True, returns the list of newly created task definition IDs. If wait=False, returns an operation ID that can be used to track progress.