EC2.Client.
cancel_import_task
(**kwargs)¶Cancels an in-process import virtual machine or import snapshot task.
See also: AWS API Documentation
Request Syntax
response = client.cancel_import_task(
CancelReason='string',
DryRun=True|False,
ImportTaskId='string'
)
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.dict
Response Syntax
{
'ImportTaskId': 'string',
'PreviousState': 'string',
'State': 'string'
}
Response Structure
(dict) --
ImportTaskId (string) --
The ID of the task being canceled.
PreviousState (string) --
The current state of the task being canceled.
State (string) --
The current state of the task being canceled.