copy_task_definition_templates#

JmsApi.copy_task_definition_templates(templates, wait=True)#

Create task definition templates by copying existing templates.

Return type:

Union[str, List[str]]

Parameters:
templatesList[TaskDefinitionTemplate]

List of task definition template. Note that only the id field of TaskDefinitionTemplate objects must be filled. The other fields can be empty.

waitbool, optional

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 template IDs. If wait=False, returns an operation ID that can be used to track progress.