cancel_import_task
¶
cancel_import_task(
*,
config_overrides: Optional[EC2ClientConfig] = None,
cancel_reason: Optional[String] = None,
dry_run: Optional[Boolean] = None,
import_task_id: Optional[ImportTaskId] = None,
) -> CancelImportTaskResult
Cancels an in-process import virtual machine or import snapshot task.
Parameters:
-
cancel_reason(Optional[String], default:None) –The reason for canceling the task.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
import_task_id(Optional[ImportTaskId], default:None) –The ID of the import image or import snapshot task to be canceled.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.