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

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ImportSnapshot

Contents

Description

Imports a disk into an EBS snapshot.

See: AWS API Reference for ImportSnapshot.

Synopsis

Creating a Request

importSnapshot :: ImportSnapshot Source

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

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

Request Lenses

isDiskContainer :: Lens' ImportSnapshot (Maybe SnapshotDiskContainer) Source

Information about the disk container.

isClientToken :: Lens' ImportSnapshot (Maybe Text) Source

Token to enable idempotency for VM import requests.

isRoleName :: Lens' ImportSnapshot (Maybe Text) Source

The name of the role to use when not using the default role, 'vmimport'.

isDescription :: Lens' ImportSnapshot (Maybe Text) Source

The description string for the import snapshot task.

isDryRun :: Lens' ImportSnapshot (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.

isClientData :: Lens' ImportSnapshot (Maybe ClientData) Source

The client-specific data.

Destructuring the Response

importSnapshotResponse Source

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

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

Response Lenses

isrsSnapshotTaskDetail :: Lens' ImportSnapshotResponse (Maybe SnapshotTaskDetail) Source

Information about the import snapshot task.

isrsImportTaskId :: Lens' ImportSnapshotResponse (Maybe Text) Source

The ID of the import snapshot task.

isrsDescription :: Lens' ImportSnapshotResponse (Maybe Text) Source

A description of the import snapshot task.