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 #

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 #

See: stopInstance smart constructor.

Instances

Eq StopInstance # 
Data StopInstance # 

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 # 
Show StopInstance # 
Generic StopInstance # 

Associated Types

type Rep StopInstance :: * -> * #

Hashable StopInstance # 
ToJSON StopInstance # 
NFData StopInstance # 

Methods

rnf :: StopInstance -> () #

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

Request Lenses

siInstanceName :: Lens' StopInstance Text #

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

Destructuring the Response

stopInstanceResponse #

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 #

See: stopInstanceResponse smart constructor.

Instances

Eq StopInstanceResponse # 
Data StopInstanceResponse # 

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

Methods

rnf :: StopInstanceResponse -> () #

type Rep StopInstanceResponse # 
type Rep StopInstanceResponse = D1 (MetaData "StopInstanceResponse" "Network.AWS.Lightsail.StopInstance" "amazonka-lightsail-1.4.5-1xtmakXHWr2BG215OJNbvq" 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] #

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

sirsResponseStatus :: Lens' StopInstanceResponse Int #

  • - | The response status code.