amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.CancelConversionTask

Description

Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.

For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.

Synopsis

Creating a Request

data CancelConversionTask Source #

See: newCancelConversionTask smart constructor.

Constructors

CancelConversionTask' 

Fields

  • dryRun :: Maybe Bool

    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.

  • reasonMessage :: Maybe Text

    The reason for canceling the conversion task.

  • conversionTaskId :: Text

    The ID of the conversion task.

Instances

Instances details
ToHeaders CancelConversionTask Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

ToPath CancelConversionTask Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

ToQuery CancelConversionTask Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

AWSRequest CancelConversionTask Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

Associated Types

type AWSResponse CancelConversionTask #

Generic CancelConversionTask Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

Associated Types

type Rep CancelConversionTask :: Type -> Type #

Read CancelConversionTask Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

Show CancelConversionTask Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

NFData CancelConversionTask Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

Methods

rnf :: CancelConversionTask -> () #

Eq CancelConversionTask Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

Hashable CancelConversionTask Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

type AWSResponse CancelConversionTask Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

type Rep CancelConversionTask Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

type Rep CancelConversionTask = D1 ('MetaData "CancelConversionTask" "Amazonka.EC2.CancelConversionTask" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CancelConversionTask'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "reasonMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "conversionTaskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCancelConversionTask Source #

Create a value of CancelConversionTask with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dryRun:CancelConversionTask', cancelConversionTask_dryRun - 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.

$sel:reasonMessage:CancelConversionTask', cancelConversionTask_reasonMessage - The reason for canceling the conversion task.

CancelConversionTask, cancelConversionTask_conversionTaskId - The ID of the conversion task.

Request Lenses

cancelConversionTask_dryRun :: Lens' CancelConversionTask (Maybe Bool) Source #

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.

cancelConversionTask_reasonMessage :: Lens' CancelConversionTask (Maybe Text) Source #

The reason for canceling the conversion task.

Destructuring the Response

data CancelConversionTaskResponse Source #

See: newCancelConversionTaskResponse smart constructor.

Instances

Instances details
Generic CancelConversionTaskResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

Associated Types

type Rep CancelConversionTaskResponse :: Type -> Type #

Read CancelConversionTaskResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

Show CancelConversionTaskResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

NFData CancelConversionTaskResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

Eq CancelConversionTaskResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

type Rep CancelConversionTaskResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelConversionTask

type Rep CancelConversionTaskResponse = D1 ('MetaData "CancelConversionTaskResponse" "Amazonka.EC2.CancelConversionTask" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CancelConversionTaskResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newCancelConversionTaskResponse :: CancelConversionTaskResponse Source #

Create a value of CancelConversionTaskResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.