amazonka-imagebuilder-2.0: Amazon EC2 Image Builder 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.ImageBuilder.ImportVmImage

Description

When you export your virtual machine (VM) from its virtualization environment, that process creates a set of one or more disk container files that act as snapshots of your VM’s environment, settings, and data. The Amazon EC2 API ImportImage action uses those files to import your VM and create an AMI. To import using the CLI command, see import-image

You can reference the task ID from the VM import to pull in the AMI that the import created as the base image for your Image Builder recipe.

Synopsis

Creating a Request

data ImportVmImage Source #

See: newImportVmImage smart constructor.

Constructors

ImportVmImage' 

Fields

  • description :: Maybe Text

    The description for the base image that is created by the import process.

  • osVersion :: Maybe Text

    The operating system version for the imported VM.

  • tags :: Maybe (HashMap Text Text)

    Tags that are attached to the import resources.

  • name :: Text

    The name of the base image that is created by the import process.

  • semanticVersion :: Text

    The semantic version to attach to the base image that was created during the import process. This version follows the semantic version syntax.

    The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.

    Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.

    Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.

  • platform :: Platform

    The operating system platform for the imported VM.

  • vmImportTaskId :: Text

    The importTaskId (API) or ImportTaskId (CLI) from the Amazon EC2 VM import process. Image Builder retrieves information from the import process to pull in the AMI that is created from the VM source as the base image for your recipe.

  • clientToken :: Text

    Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.

Instances

Instances details
ToJSON ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

ToHeaders ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

ToPath ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

ToQuery ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

AWSRequest ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

Associated Types

type AWSResponse ImportVmImage #

Generic ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

Associated Types

type Rep ImportVmImage :: Type -> Type #

Read ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

Show ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

NFData ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

Methods

rnf :: ImportVmImage -> () #

Eq ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

Hashable ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

type AWSResponse ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

type Rep ImportVmImage Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

newImportVmImage Source #

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

ImportVmImage, importVmImage_description - The description for the base image that is created by the import process.

ImportVmImage, importVmImage_osVersion - The operating system version for the imported VM.

ImportVmImage, importVmImage_tags - Tags that are attached to the import resources.

ImportVmImage, importVmImage_name - The name of the base image that is created by the import process.

$sel:semanticVersion:ImportVmImage', importVmImage_semanticVersion - The semantic version to attach to the base image that was created during the import process. This version follows the semantic version syntax.

The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.

Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.

Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.

ImportVmImage, importVmImage_platform - The operating system platform for the imported VM.

$sel:vmImportTaskId:ImportVmImage', importVmImage_vmImportTaskId - The importTaskId (API) or ImportTaskId (CLI) from the Amazon EC2 VM import process. Image Builder retrieves information from the import process to pull in the AMI that is created from the VM source as the base image for your recipe.

ImportVmImage, importVmImage_clientToken - Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.

Request Lenses

importVmImage_description :: Lens' ImportVmImage (Maybe Text) Source #

The description for the base image that is created by the import process.

importVmImage_osVersion :: Lens' ImportVmImage (Maybe Text) Source #

The operating system version for the imported VM.

importVmImage_tags :: Lens' ImportVmImage (Maybe (HashMap Text Text)) Source #

Tags that are attached to the import resources.

importVmImage_name :: Lens' ImportVmImage Text Source #

The name of the base image that is created by the import process.

importVmImage_semanticVersion :: Lens' ImportVmImage Text Source #

The semantic version to attach to the base image that was created during the import process. This version follows the semantic version syntax.

The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.

Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.

Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.

importVmImage_platform :: Lens' ImportVmImage Platform Source #

The operating system platform for the imported VM.

importVmImage_vmImportTaskId :: Lens' ImportVmImage Text Source #

The importTaskId (API) or ImportTaskId (CLI) from the Amazon EC2 VM import process. Image Builder retrieves information from the import process to pull in the AMI that is created from the VM source as the base image for your recipe.

importVmImage_clientToken :: Lens' ImportVmImage Text Source #

Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.

Destructuring the Response

data ImportVmImageResponse Source #

See: newImportVmImageResponse smart constructor.

Constructors

ImportVmImageResponse' 

Fields

  • clientToken :: Maybe Text

    The idempotency token that was used for this request.

  • imageArn :: Maybe Text

    The Amazon Resource Name (ARN) of the AMI that was created during the VM import process. This AMI is used as the base image for the recipe that imported the VM.

  • requestId :: Maybe Text

    The request ID that uniquely identifies this request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ImportVmImageResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

Associated Types

type Rep ImportVmImageResponse :: Type -> Type #

Read ImportVmImageResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

Show ImportVmImageResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

NFData ImportVmImageResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

Methods

rnf :: ImportVmImageResponse -> () #

Eq ImportVmImageResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

type Rep ImportVmImageResponse Source # 
Instance details

Defined in Amazonka.ImageBuilder.ImportVmImage

type Rep ImportVmImageResponse = D1 ('MetaData "ImportVmImageResponse" "Amazonka.ImageBuilder.ImportVmImage" "amazonka-imagebuilder-2.0-BBLLjX59RW72O8VbQ3vKvH" 'False) (C1 ('MetaCons "ImportVmImageResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "imageArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newImportVmImageResponse Source #

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

ImportVmImage, importVmImageResponse_clientToken - The idempotency token that was used for this request.

$sel:imageArn:ImportVmImageResponse', importVmImageResponse_imageArn - The Amazon Resource Name (ARN) of the AMI that was created during the VM import process. This AMI is used as the base image for the recipe that imported the VM.

$sel:requestId:ImportVmImageResponse', importVmImageResponse_requestId - The request ID that uniquely identifies this request.

$sel:httpStatus:ImportVmImageResponse', importVmImageResponse_httpStatus - The response's http status code.

Response Lenses

importVmImageResponse_clientToken :: Lens' ImportVmImageResponse (Maybe Text) Source #

The idempotency token that was used for this request.

importVmImageResponse_imageArn :: Lens' ImportVmImageResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the AMI that was created during the VM import process. This AMI is used as the base image for the recipe that imported the VM.

importVmImageResponse_requestId :: Lens' ImportVmImageResponse (Maybe Text) Source #

The request ID that uniquely identifies this request.