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.CreateInstancesFromSnapshot

Contents

Description

Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration.

Synopsis

Creating a Request

createInstancesFromSnapshot Source #

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

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

  • cifsUserData - You can create a launch script that configures a server with additional user data. For example, apt-get –y update .
  • cifsKeyPairName - The name for your key pair.
  • cifsInstanceNames - The names for your new instances.
  • cifsAvailabilityZone - The Availability Zone where you want to create your instances. Use the following formatting: us-east-1a (case sensitive).
  • cifsInstanceSnapshotName - The name of the instance snapshot on which you are basing your new instances. Use the get instance snapshots operation to return information about your existing snapshots.
  • cifsBundleId - The bundle of specification information for your virtual private server (or instance ), including the pricing plan (e.g., micro_1_0 ).

data CreateInstancesFromSnapshot Source #

See: createInstancesFromSnapshot smart constructor.

Instances

Eq CreateInstancesFromSnapshot Source # 
Data CreateInstancesFromSnapshot Source # 

Methods

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

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

toConstr :: CreateInstancesFromSnapshot -> Constr #

dataTypeOf :: CreateInstancesFromSnapshot -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateInstancesFromSnapshot Source # 
Show CreateInstancesFromSnapshot Source # 
Generic CreateInstancesFromSnapshot Source # 
Hashable CreateInstancesFromSnapshot Source # 
ToJSON CreateInstancesFromSnapshot Source # 
NFData CreateInstancesFromSnapshot Source # 
AWSRequest CreateInstancesFromSnapshot Source # 
ToPath CreateInstancesFromSnapshot Source # 
ToHeaders CreateInstancesFromSnapshot Source # 
ToQuery CreateInstancesFromSnapshot Source # 
type Rep CreateInstancesFromSnapshot Source # 
type Rep CreateInstancesFromSnapshot = D1 (MetaData "CreateInstancesFromSnapshot" "Network.AWS.Lightsail.CreateInstancesFromSnapshot" "amazonka-lightsail-1.4.5-5jz0XqtfwkUBGV0E8NKblJ" False) (C1 (MetaCons "CreateInstancesFromSnapshot'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cifsUserData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cifsKeyPairName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cifsInstanceNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))) ((:*:) (S1 (MetaSel (Just Symbol "_cifsAvailabilityZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_cifsInstanceSnapshotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cifsBundleId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs CreateInstancesFromSnapshot Source # 

Request Lenses

cifsUserData :: Lens' CreateInstancesFromSnapshot (Maybe Text) Source #

You can create a launch script that configures a server with additional user data. For example, apt-get –y update .

cifsInstanceNames :: Lens' CreateInstancesFromSnapshot [Text] Source #

The names for your new instances.

cifsAvailabilityZone :: Lens' CreateInstancesFromSnapshot Text Source #

The Availability Zone where you want to create your instances. Use the following formatting: us-east-1a (case sensitive).

cifsInstanceSnapshotName :: Lens' CreateInstancesFromSnapshot Text Source #

The name of the instance snapshot on which you are basing your new instances. Use the get instance snapshots operation to return information about your existing snapshots.

cifsBundleId :: Lens' CreateInstancesFromSnapshot Text Source #

The bundle of specification information for your virtual private server (or instance ), including the pricing plan (e.g., micro_1_0 ).

Destructuring the Response

createInstancesFromSnapshotResponse Source #

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

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

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

data CreateInstancesFromSnapshotResponse Source #

See: createInstancesFromSnapshotResponse smart constructor.

Instances

Eq CreateInstancesFromSnapshotResponse Source # 
Data CreateInstancesFromSnapshotResponse Source # 

Methods

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

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

toConstr :: CreateInstancesFromSnapshotResponse -> Constr #

dataTypeOf :: CreateInstancesFromSnapshotResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Response Lenses

cifsrsOperations :: Lens' CreateInstancesFromSnapshotResponse [Operation] Source #

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