amazonka-lightsail-1.4.5: Amazon Lightsail SDK.

Copyright(c) 2013-2016 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.Lightsail.CreateInstanceSnapshot

Contents

Description

Creates a snapshot of a specific virtual private server, or instance . You can use a snapshot to create a new instance that is based on that snapshot.

Synopsis

Creating a Request

createInstanceSnapshot Source #

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

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

data CreateInstanceSnapshot Source #

See: createInstanceSnapshot smart constructor.

Instances

Eq CreateInstanceSnapshot Source # 
Data CreateInstanceSnapshot Source # 

Methods

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

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

toConstr :: CreateInstanceSnapshot -> Constr #

dataTypeOf :: CreateInstanceSnapshot -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateInstanceSnapshot Source # 
Show CreateInstanceSnapshot Source # 
Generic CreateInstanceSnapshot Source # 
Hashable CreateInstanceSnapshot Source # 
ToJSON CreateInstanceSnapshot Source # 
NFData CreateInstanceSnapshot Source # 

Methods

rnf :: CreateInstanceSnapshot -> () #

AWSRequest CreateInstanceSnapshot Source # 
ToPath CreateInstanceSnapshot Source # 
ToHeaders CreateInstanceSnapshot Source # 
ToQuery CreateInstanceSnapshot Source # 
type Rep CreateInstanceSnapshot Source # 
type Rep CreateInstanceSnapshot = D1 (MetaData "CreateInstanceSnapshot" "Network.AWS.Lightsail.CreateInstanceSnapshot" "amazonka-lightsail-1.4.5-5jz0XqtfwkUBGV0E8NKblJ" False) (C1 (MetaCons "CreateInstanceSnapshot'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cisInstanceSnapshotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cisInstanceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateInstanceSnapshot Source # 

Request Lenses

cisInstanceName :: Lens' CreateInstanceSnapshot Text Source #

The Lightsail instance on which to base your snapshot.

Destructuring the Response

createInstanceSnapshotResponse Source #

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

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

  • cisrsOperations - An array of key-value pairs containing information about the results of your create instances snapshot request.
  • cisrsResponseStatus - -- | The response status code.

data CreateInstanceSnapshotResponse Source #

See: createInstanceSnapshotResponse smart constructor.

Instances

Eq CreateInstanceSnapshotResponse Source # 
Data CreateInstanceSnapshotResponse Source # 

Methods

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

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

toConstr :: CreateInstanceSnapshotResponse -> Constr #

dataTypeOf :: CreateInstanceSnapshotResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateInstanceSnapshotResponse Source # 
Show CreateInstanceSnapshotResponse Source # 
Generic CreateInstanceSnapshotResponse Source # 
NFData CreateInstanceSnapshotResponse Source # 
type Rep CreateInstanceSnapshotResponse Source # 
type Rep CreateInstanceSnapshotResponse = D1 (MetaData "CreateInstanceSnapshotResponse" "Network.AWS.Lightsail.CreateInstanceSnapshot" "amazonka-lightsail-1.4.5-5jz0XqtfwkUBGV0E8NKblJ" False) (C1 (MetaCons "CreateInstanceSnapshotResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cisrsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Operation]))) (S1 (MetaSel (Just Symbol "_cisrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

cisrsOperations :: Lens' CreateInstanceSnapshotResponse [Operation] Source #

An array of key-value pairs containing information about the results of your create instances snapshot request.