amazonka-ec2-1.6.1: Amazon Elastic Compute Cloud SDK.

Copyright (c) 2013-2018 Brendan Hay Mozilla Public License, v. 2.0. Brendan Hay auto-generated non-portable (GHC extensions) None Haskell2010

Description

Cancels an in-process import virtual machine or import snapshot task.

Synopsis

# Creating a Request

Creates a value of CancelImportTask with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

• citCancelReason - The reason for canceling the task.
• citImportTaskId - The ID of the import image or import snapshot task to be canceled.
• citDryRun - 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 is UnauthorizedOperation .

See: cancelImportTask smart constructor.

Instances

# Request Lenses

The reason for canceling the task.

The ID of the import image or import snapshot task to be canceled.

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 is UnauthorizedOperation .

# Destructuring the Response

Arguments

 :: Int citrsResponseStatus -> CancelImportTaskResponse

Creates a value of CancelImportTaskResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

• citrsState - The current state of the task being canceled.
• citrsImportTaskId - The ID of the task being canceled.
• citrsPreviousState - The current state of the task being canceled.
• citrsResponseStatus - -- | The response status code.

See: cancelImportTaskResponse smart constructor.

Instances