IoTSiteWise / Client / delete_task
delete_task¶
- IoTSiteWise.Client.delete_task(**kwargs)¶
Deletes a task from the specified workspace. A task cannot be deleted if it is currently referenced by any existing pipeline. Remove the task from all pipelines before attempting to delete it.
See also: AWS API Documentation
Request Syntax
response = client.delete_task( workspaceName='string', taskName='string' )
- Parameters:
workspaceName (string) –
[REQUIRED]
The name of the workspace.
taskName (string) –
[REQUIRED]
The name of the task to delete.
- Return type:
dict
- Returns:
Response Syntax
{ 'status': { 'error': { 'code': 'VALIDATION_ERROR'|'INTERNAL_FAILURE', 'message': 'string' }, 'state': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'FAILED' } }
Response Structure
(dict) –
Response structure for DeleteTask operation.
status (dict) –
The current lifecycle status of the task.
error (dict) –
Contains associated error information, if any.
code (string) –
The error code.
message (string) –
The error message.
state (string) –
The current status of the resource.
Exceptions