amazonka-lightsail-1.6.1: Amazon Lightsail 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.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.
  • cifsAttachedDiskMapping - An object containing information about one or more disk mappings.
  • cifsInstanceNames - The names for your new instances.
  • cifsAvailabilityZone - The Availability Zone where you want to create your instances. Use the following formatting: us-east-2a (case sensitive). You can get a list of availability zones by using the get regions operation. Be sure to add the include availability zones parameter to your request.
  • 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 # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

Data CreateInstancesFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

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

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

Show CreateInstancesFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

Generic CreateInstancesFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

Associated Types

type Rep CreateInstancesFromSnapshot :: Type -> Type #

Hashable CreateInstancesFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

ToJSON CreateInstancesFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

AWSRequest CreateInstancesFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

Associated Types

type Rs CreateInstancesFromSnapshot :: Type #

ToHeaders CreateInstancesFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

ToPath CreateInstancesFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

ToQuery CreateInstancesFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

NFData CreateInstancesFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

type Rep CreateInstancesFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

type Rep CreateInstancesFromSnapshot = D1 (MetaData "CreateInstancesFromSnapshot" "Network.AWS.Lightsail.CreateInstancesFromSnapshot" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" False) (C1 (MetaCons "CreateInstancesFromSnapshot'" PrefixI True) ((S1 (MetaSel (Just "_cifsUserData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cifsKeyPairName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cifsAttachedDiskMapping") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text [DiskMap]))))) :*: ((S1 (MetaSel (Just "_cifsInstanceNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: S1 (MetaSel (Just "_cifsAvailabilityZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_cifsInstanceSnapshotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cifsBundleId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateInstancesFromSnapshot Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

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 .

cifsAttachedDiskMapping :: Lens' CreateInstancesFromSnapshot (HashMap Text [DiskMap]) Source #

An object containing information about one or more disk mappings.

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-2a (case sensitive). You can get a list of availability zones by using the get regions operation. Be sure to add the include availability zones parameter to your request.

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

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

Data CreateInstancesFromSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

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

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

Show CreateInstancesFromSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

Generic CreateInstancesFromSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

NFData CreateInstancesFromSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

type Rep CreateInstancesFromSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstancesFromSnapshot

type Rep CreateInstancesFromSnapshotResponse = D1 (MetaData "CreateInstancesFromSnapshotResponse" "Network.AWS.Lightsail.CreateInstancesFromSnapshot" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" False) (C1 (MetaCons "CreateInstancesFromSnapshotResponse'" PrefixI True) (S1 (MetaSel (Just "_cifsrsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 (MetaSel (Just "_cifsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (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.