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

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

Network.AWS.EC2.ImportSnapshot

Contents

Description

Imports a disk into an EBS snapshot.

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:

  • isDiskContainer - Information about the disk container.
  • isClientToken - Token to enable idempotency for VM import requests.
  • isRoleName - The name of the role to use when not using the default role, vmimport.
  • isDescription - The description string for the import snapshot task.
  • isDryRun - 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 - The client-specific data.

data ImportSnapshot Source #

Contains the parameters for ImportSnapshot.

See: importSnapshot smart constructor.

Instances
Eq ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Data ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ImportSnapshot -> c ImportSnapshot #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ImportSnapshot #

toConstr :: ImportSnapshot -> Constr #

dataTypeOf :: ImportSnapshot -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ImportSnapshot) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ImportSnapshot) #

gmapT :: (forall b. Data b => b -> b) -> ImportSnapshot -> ImportSnapshot #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ImportSnapshot -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ImportSnapshot -> r #

gmapQ :: (forall d. Data d => d -> u) -> ImportSnapshot -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ImportSnapshot -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ImportSnapshot -> m ImportSnapshot #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ImportSnapshot -> m ImportSnapshot #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ImportSnapshot -> m ImportSnapshot #

Read ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Show ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Generic ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Associated Types

type Rep ImportSnapshot :: Type -> Type #

Hashable ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

AWSRequest ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Associated Types

type Rs ImportSnapshot :: Type #

ToHeaders ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

ToPath ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

ToQuery ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

NFData ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Methods

rnf :: ImportSnapshot -> () #

type Rep ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

type Rep ImportSnapshot = D1 (MetaData "ImportSnapshot" "Network.AWS.EC2.ImportSnapshot" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ImportSnapshot'" PrefixI True) ((S1 (MetaSel (Just "_isDiskContainer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SnapshotDiskContainer)) :*: (S1 (MetaSel (Just "_isClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_isRoleName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_isDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_isDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_isClientData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ClientData))))))
type Rs ImportSnapshot Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

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:

data ImportSnapshotResponse Source #

Contains the output for ImportSnapshot.

See: importSnapshotResponse smart constructor.

Instances
Eq ImportSnapshotResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Data ImportSnapshotResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ImportSnapshotResponse -> c ImportSnapshotResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ImportSnapshotResponse #

toConstr :: ImportSnapshotResponse -> Constr #

dataTypeOf :: ImportSnapshotResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ImportSnapshotResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ImportSnapshotResponse) #

gmapT :: (forall b. Data b => b -> b) -> ImportSnapshotResponse -> ImportSnapshotResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ImportSnapshotResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ImportSnapshotResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ImportSnapshotResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ImportSnapshotResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ImportSnapshotResponse -> m ImportSnapshotResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ImportSnapshotResponse -> m ImportSnapshotResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ImportSnapshotResponse -> m ImportSnapshotResponse #

Read ImportSnapshotResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Show ImportSnapshotResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Generic ImportSnapshotResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Associated Types

type Rep ImportSnapshotResponse :: Type -> Type #

NFData ImportSnapshotResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Methods

rnf :: ImportSnapshotResponse -> () #

type Rep ImportSnapshotResponse Source # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

type Rep ImportSnapshotResponse = D1 (MetaData "ImportSnapshotResponse" "Network.AWS.EC2.ImportSnapshot" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ImportSnapshotResponse'" PrefixI True) ((S1 (MetaSel (Just "_isrsSnapshotTaskDetail") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SnapshotTaskDetail)) :*: S1 (MetaSel (Just "_isrsImportTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_isrsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_isrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

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.

isrsResponseStatus :: Lens' ImportSnapshotResponse Int Source #

  • - | The response status code.