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

Contents

Description

Starts a specific Amazon Lightsail instance from a stopped state. To restart an instance, use the reboot instance operation.

Synopsis

Creating a Request

startInstance Source #

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

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

  • sInstanceName - The name of the instance (a virtual private server) to start.

data StartInstance Source #

See: startInstance smart constructor.

Instances
Eq StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Data StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Methods

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

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

toConstr :: StartInstance -> Constr #

dataTypeOf :: StartInstance -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Show StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Generic StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Associated Types

type Rep StartInstance :: Type -> Type #

Hashable StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

ToJSON StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

AWSRequest StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Associated Types

type Rs StartInstance :: Type #

ToHeaders StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

ToPath StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

ToQuery StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

NFData StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Methods

rnf :: StartInstance -> () #

type Rep StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

type Rep StartInstance = D1 (MetaData "StartInstance" "Network.AWS.Lightsail.StartInstance" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" True) (C1 (MetaCons "StartInstance'" PrefixI True) (S1 (MetaSel (Just "_sInstanceName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs StartInstance Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Request Lenses

sInstanceName :: Lens' StartInstance Text Source #

The name of the instance (a virtual private server) to start.

Destructuring the Response

startInstanceResponse Source #

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

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

data StartInstanceResponse Source #

See: startInstanceResponse smart constructor.

Instances
Eq StartInstanceResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Data StartInstanceResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Methods

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

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

toConstr :: StartInstanceResponse -> Constr #

dataTypeOf :: StartInstanceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartInstanceResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Show StartInstanceResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Generic StartInstanceResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Associated Types

type Rep StartInstanceResponse :: Type -> Type #

NFData StartInstanceResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

Methods

rnf :: StartInstanceResponse -> () #

type Rep StartInstanceResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.StartInstance

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

Response Lenses

srsOperations :: Lens' StartInstanceResponse [Operation] Source #

An array of key-value pairs containing information about the request operation.

srsResponseStatus :: Lens' StartInstanceResponse Int Source #

  • - | The response status code.