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

Description

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

This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead. To import a disk to a snapshot, use ImportSnapshot 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 Disks to Amazon EBS 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 ImportVolume Source #

See: newImportVolume smart constructor.

Constructors

ImportVolume' 

Fields

  • description :: Maybe Text

    A description of the volume.

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

  • availabilityZone :: Text

    The Availability Zone for the resulting EBS volume.

  • image :: DiskImageDetail

    The disk image.

  • volume :: VolumeDetail

    The volume size.

Instances

Instances details
ToHeaders ImportVolume Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

ToPath ImportVolume Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

ToQuery ImportVolume Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

AWSRequest ImportVolume Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

Associated Types

type AWSResponse ImportVolume #

Generic ImportVolume Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

Associated Types

type Rep ImportVolume :: Type -> Type #

Read ImportVolume Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

Show ImportVolume Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

NFData ImportVolume Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

Methods

rnf :: ImportVolume -> () #

Eq ImportVolume Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

Hashable ImportVolume Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

type AWSResponse ImportVolume Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

type Rep ImportVolume Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

newImportVolume Source #

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

ImportVolume, importVolume_description - A description of the volume.

$sel:dryRun:ImportVolume', importVolume_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.

ImportVolume, importVolume_availabilityZone - The Availability Zone for the resulting EBS volume.

ImportVolume, importVolume_image - The disk image.

ImportVolume, importVolume_volume - The volume size.

Request Lenses

importVolume_description :: Lens' ImportVolume (Maybe Text) Source #

A description of the volume.

importVolume_dryRun :: Lens' ImportVolume (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.

importVolume_availabilityZone :: Lens' ImportVolume Text Source #

The Availability Zone for the resulting EBS volume.

Destructuring the Response

data ImportVolumeResponse Source #

See: newImportVolumeResponse smart constructor.

Constructors

ImportVolumeResponse' 

Fields

Instances

Instances details
Generic ImportVolumeResponse Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

Associated Types

type Rep ImportVolumeResponse :: Type -> Type #

Read ImportVolumeResponse Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

Show ImportVolumeResponse Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

NFData ImportVolumeResponse Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

Methods

rnf :: ImportVolumeResponse -> () #

Eq ImportVolumeResponse Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

type Rep ImportVolumeResponse Source # 
Instance details

Defined in Amazonka.EC2.ImportVolume

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

newImportVolumeResponse Source #

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

$sel:httpStatus:ImportVolumeResponse', importVolumeResponse_httpStatus - The response's http status code.

Response Lenses