CloudWatchLogs / Client / cancel_export_task
cancel_export_task#
- CloudWatchLogs.Client.cancel_export_task(**kwargs)#
Cancels the specified export task.
The task must be in the
PENDINGorRUNNINGstate.See also: AWS API Documentation
Request Syntax
response = client.cancel_export_task( taskId='string' )
- Parameters:
taskId (string) –
[REQUIRED]
The ID of the export task.
- Returns:
None
Exceptions
CloudWatchLogs.Client.exceptions.InvalidParameterExceptionCloudWatchLogs.Client.exceptions.ResourceNotFoundExceptionCloudWatchLogs.Client.exceptions.InvalidOperationExceptionCloudWatchLogs.Client.exceptions.ServiceUnavailableException