amazonka-lightsail-1.6.0: 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 # 
Data StartInstance Source # 

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 # 
Show StartInstance Source # 
Generic StartInstance Source # 

Associated Types

type Rep StartInstance :: * -> * #

Hashable StartInstance Source # 
ToJSON StartInstance Source # 
NFData StartInstance Source # 

Methods

rnf :: StartInstance -> () #

AWSRequest StartInstance Source # 
ToHeaders StartInstance Source # 
ToPath StartInstance Source # 
ToQuery StartInstance Source # 
type Rep StartInstance Source # 
type Rep StartInstance = D1 * (MetaData "StartInstance" "Network.AWS.Lightsail.StartInstance" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" True) (C1 * (MetaCons "StartInstance'" PrefixI True) (S1 * (MetaSel (Just Symbol "_sInstanceName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs StartInstance Source # 

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 # 
Data StartInstanceResponse Source # 

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 # 
Show StartInstanceResponse Source # 
Generic StartInstanceResponse Source # 
NFData StartInstanceResponse Source # 

Methods

rnf :: StartInstanceResponse -> () #

type Rep StartInstanceResponse Source # 
type Rep StartInstanceResponse = D1 * (MetaData "StartInstanceResponse" "Network.AWS.Lightsail.StartInstance" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" False) (C1 * (MetaCons "StartInstanceResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_srsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Operation]))) (S1 * (MetaSel (Just Symbol "_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.