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.ImportInstance

Description

Creates an import instance task using metadata from the specified disk image.

This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead.

This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing a VM to Amazon EC2 in the Amazon EC2 CLI Reference PDF file.

For information about the import manifest referenced by this API action, see VM Import Manifest.

Synopsis

Creating a Request

data ImportInstance Source #

See: newImportInstance smart constructor.

Constructors

ImportInstance' 

Fields

Instances

Instances details
ToHeaders ImportInstance Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

ToPath ImportInstance Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

ToQuery ImportInstance Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

AWSRequest ImportInstance Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

Associated Types

type AWSResponse ImportInstance #

Generic ImportInstance Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

Associated Types

type Rep ImportInstance :: Type -> Type #

Show ImportInstance Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

NFData ImportInstance Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

Methods

rnf :: ImportInstance -> () #

Eq ImportInstance Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

Hashable ImportInstance Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

type AWSResponse ImportInstance Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

type Rep ImportInstance Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

newImportInstance Source #

Create a value of ImportInstance 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:

ImportInstance, importInstance_description - A description for the instance being imported.

$sel:diskImages:ImportInstance', importInstance_diskImages - The disk image.

$sel:dryRun:ImportInstance', importInstance_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.

ImportInstance, importInstance_launchSpecification - The launch specification.

ImportInstance, importInstance_platform - The instance operating system.

Request Lenses

importInstance_description :: Lens' ImportInstance (Maybe Text) Source #

A description for the instance being imported.

importInstance_dryRun :: Lens' ImportInstance (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.

Destructuring the Response

data ImportInstanceResponse Source #

See: newImportInstanceResponse smart constructor.

Constructors

ImportInstanceResponse' 

Fields

Instances

Instances details
Generic ImportInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

Associated Types

type Rep ImportInstanceResponse :: Type -> Type #

Read ImportInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

Show ImportInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

NFData ImportInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

Methods

rnf :: ImportInstanceResponse -> () #

Eq ImportInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

type Rep ImportInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.ImportInstance

type Rep ImportInstanceResponse = D1 ('MetaData "ImportInstanceResponse" "Amazonka.EC2.ImportInstance" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ImportInstanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "conversionTask") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConversionTask)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newImportInstanceResponse Source #

Create a value of ImportInstanceResponse 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:conversionTask:ImportInstanceResponse', importInstanceResponse_conversionTask - Information about the conversion task.

$sel:httpStatus:ImportInstanceResponse', importInstanceResponse_httpStatus - The response's http status code.

Response Lenses