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

Contents

Description

Stops a specific Amazon Lightsail instance that is currently running.

Synopsis

Creating a Request

stopInstance Source #

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

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

  • siInstanceName - The name of the instance (a virtual private server) to stop.

data StopInstance Source #

See: stopInstance smart constructor.

Instances

Eq StopInstance Source # 
Data StopInstance Source # 

Methods

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

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

toConstr :: StopInstance -> Constr #

dataTypeOf :: StopInstance -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StopInstance Source # 
Show StopInstance Source # 
Generic StopInstance Source # 

Associated Types

type Rep StopInstance :: * -> * #

Hashable StopInstance Source # 
ToJSON StopInstance Source # 
NFData StopInstance Source # 

Methods

rnf :: StopInstance -> () #

AWSRequest StopInstance Source # 
ToPath StopInstance Source # 
ToHeaders StopInstance Source # 
ToQuery StopInstance Source # 
type Rep StopInstance Source # 
type Rep StopInstance = D1 (MetaData "StopInstance" "Network.AWS.Lightsail.StopInstance" "amazonka-lightsail-1.4.5-5jz0XqtfwkUBGV0E8NKblJ" True) (C1 (MetaCons "StopInstance'" PrefixI True) (S1 (MetaSel (Just Symbol "_siInstanceName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs StopInstance Source # 

Request Lenses

siInstanceName :: Lens' StopInstance Text Source #

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

Destructuring the Response

stopInstanceResponse Source #

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

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

data StopInstanceResponse Source #

See: stopInstanceResponse smart constructor.

Instances

Eq StopInstanceResponse Source # 
Data StopInstanceResponse Source # 

Methods

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

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

toConstr :: StopInstanceResponse -> Constr #

dataTypeOf :: StopInstanceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StopInstanceResponse Source # 
Show StopInstanceResponse Source # 
Generic StopInstanceResponse Source # 
NFData StopInstanceResponse Source # 

Methods

rnf :: StopInstanceResponse -> () #

type Rep StopInstanceResponse Source # 
type Rep StopInstanceResponse = D1 (MetaData "StopInstanceResponse" "Network.AWS.Lightsail.StopInstance" "amazonka-lightsail-1.4.5-5jz0XqtfwkUBGV0E8NKblJ" False) (C1 (MetaCons "StopInstanceResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_sirsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Operation]))) (S1 (MetaSel (Just Symbol "_sirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

sirsOperations :: Lens' StopInstanceResponse [Operation] Source #

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

sirsResponseStatus :: Lens' StopInstanceResponse Int Source #

  • - | The response status code.