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 #

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 #

Contains the parameters for ImportSnapshot.

See: importSnapshot smart constructor.

Instances
Eq ImportSnapshot # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Data ImportSnapshot # 
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 # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Show ImportSnapshot # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Generic ImportSnapshot # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Associated Types

type Rep ImportSnapshot :: Type -> Type #

Hashable ImportSnapshot # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

AWSRequest ImportSnapshot # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Associated Types

type Rs ImportSnapshot :: Type #

ToHeaders ImportSnapshot # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

ToPath ImportSnapshot # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

ToQuery ImportSnapshot # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

NFData ImportSnapshot # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Methods

rnf :: ImportSnapshot -> () #

type Rep ImportSnapshot # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

type Rep ImportSnapshot = D1 (MetaData "ImportSnapshot" "Network.AWS.EC2.ImportSnapshot" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" 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 # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Request Lenses

isDiskContainer :: Lens' ImportSnapshot (Maybe SnapshotDiskContainer) #

Information about the disk container.

isClientToken :: Lens' ImportSnapshot (Maybe Text) #

Token to enable idempotency for VM import requests.

isRoleName :: Lens' ImportSnapshot (Maybe Text) #

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

isDescription :: Lens' ImportSnapshot (Maybe Text) #

The description string for the import snapshot task.

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

isClientData :: Lens' ImportSnapshot (Maybe ClientData) #

The client-specific data.

Destructuring the Response

importSnapshotResponse #

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 #

Contains the output for ImportSnapshot.

See: importSnapshotResponse smart constructor.

Instances
Eq ImportSnapshotResponse # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Data ImportSnapshotResponse # 
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 # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Show ImportSnapshotResponse # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Generic ImportSnapshotResponse # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Associated Types

type Rep ImportSnapshotResponse :: Type -> Type #

NFData ImportSnapshotResponse # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

Methods

rnf :: ImportSnapshotResponse -> () #

type Rep ImportSnapshotResponse # 
Instance details

Defined in Network.AWS.EC2.ImportSnapshot

type Rep ImportSnapshotResponse = D1 (MetaData "ImportSnapshotResponse" "Network.AWS.EC2.ImportSnapshot" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" 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) #

Information about the import snapshot task.

isrsImportTaskId :: Lens' ImportSnapshotResponse (Maybe Text) #

The ID of the import snapshot task.

isrsDescription :: Lens' ImportSnapshotResponse (Maybe Text) #

A description of the import snapshot task.

isrsResponseStatus :: Lens' ImportSnapshotResponse Int #

  • - | The response status code.