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

Contents

Description

Creates one or more Amazon Lightsail virtual private servers, or instances .

Synopsis

Creating a Request

createInstances Source #

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

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

  • ciCustomImageName - (Deprecated) The name for your custom image.
  • ciUserData - A launch script you can create that configures a server with additional user data. For example, you might want to run apt-get -y update .
  • ciKeyPairName - The name of your key pair.
  • ciInstanceNames - The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example: [MyFirstInstance,MySecondInstance]
  • ciAvailabilityZone - The Availability Zone in which to create your instance. Use the following format: 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.
  • ciBlueprintId - The ID for a virtual private server image (e.g., app_wordpress_4_4 or app_lamp_7_0 ). Use the get blueprints operation to return a list of available images (or blueprints ).
  • ciBundleId - The bundle of specification information for your virtual private server (or instance ), including the pricing plan (e.g., micro_1_0 ).

data CreateInstances Source #

See: createInstances smart constructor.

Instances
Eq CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Data CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Methods

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

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

toConstr :: CreateInstances -> Constr #

dataTypeOf :: CreateInstances -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Show CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Generic CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Associated Types

type Rep CreateInstances :: Type -> Type #

Hashable CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

ToJSON CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

AWSRequest CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Associated Types

type Rs CreateInstances :: Type #

ToHeaders CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

ToPath CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

ToQuery CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

NFData CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Methods

rnf :: CreateInstances -> () #

type Rep CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

type Rep CreateInstances = D1 (MetaData "CreateInstances" "Network.AWS.Lightsail.CreateInstances" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" False) (C1 (MetaCons "CreateInstances'" PrefixI True) ((S1 (MetaSel (Just "_ciCustomImageName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ciUserData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ciKeyPairName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_ciInstanceNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: S1 (MetaSel (Just "_ciAvailabilityZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_ciBlueprintId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ciBundleId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Request Lenses

ciCustomImageName :: Lens' CreateInstances (Maybe Text) Source #

(Deprecated) The name for your custom image.

ciUserData :: Lens' CreateInstances (Maybe Text) Source #

A launch script you can create that configures a server with additional user data. For example, you might want to run apt-get -y update .

ciKeyPairName :: Lens' CreateInstances (Maybe Text) Source #

The name of your key pair.

ciInstanceNames :: Lens' CreateInstances [Text] Source #

The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example: [MyFirstInstance,MySecondInstance]

ciAvailabilityZone :: Lens' CreateInstances Text Source #

The Availability Zone in which to create your instance. Use the following format: 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.

ciBlueprintId :: Lens' CreateInstances Text Source #

The ID for a virtual private server image (e.g., app_wordpress_4_4 or app_lamp_7_0 ). Use the get blueprints operation to return a list of available images (or blueprints ).

ciBundleId :: Lens' CreateInstances 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

createInstancesResponse Source #

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

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

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

data CreateInstancesResponse Source #

See: createInstancesResponse smart constructor.

Instances
Eq CreateInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Data CreateInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Methods

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

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

toConstr :: CreateInstancesResponse -> Constr #

dataTypeOf :: CreateInstancesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Show CreateInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Generic CreateInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Associated Types

type Rep CreateInstancesResponse :: Type -> Type #

NFData CreateInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

Methods

rnf :: CreateInstancesResponse -> () #

type Rep CreateInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.CreateInstances

type Rep CreateInstancesResponse = D1 (MetaData "CreateInstancesResponse" "Network.AWS.Lightsail.CreateInstances" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" False) (C1 (MetaCons "CreateInstancesResponse'" PrefixI True) (S1 (MetaSel (Just "_cirsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 (MetaSel (Just "_cirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

cirsOperations :: Lens' CreateInstancesResponse [Operation] Source #

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