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

  • siForce - When set to True , forces a Lightsail instance that is stuck in a stopping state to stop. Important: Only use the force parameter if your instance is stuck in the stopping state. In any other state, your instance should stop normally without adding this parameter to your API request.
  • siInstanceName - The name of the instance (a virtual private server) to stop.

data StopInstance #

See: stopInstance smart constructor.

Instances
Eq StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

Data StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.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 # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

Show StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

Generic StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

Associated Types

type Rep StopInstance :: Type -> Type #

Hashable StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

ToJSON StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

AWSRequest StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

Associated Types

type Rs StopInstance :: Type #

ToHeaders StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

ToPath StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

ToQuery StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

NFData StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

Methods

rnf :: StopInstance -> () #

type Rep StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

type Rep StopInstance = D1 (MetaData "StopInstance" "Network.AWS.Lightsail.StopInstance" "amazonka-lightsail-1.6.1-DK54tD67vqE2dEuVa43WK0" False) (C1 (MetaCons "StopInstance'" PrefixI True) (S1 (MetaSel (Just "_siForce") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_siInstanceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs StopInstance # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

Request Lenses

siForce :: Lens' StopInstance (Maybe Bool) #

When set to True , forces a Lightsail instance that is stuck in a stopping state to stop. Important: Only use the force parameter if your instance is stuck in the stopping state. In any other state, your instance should stop normally without adding this parameter to your API request.

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 # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

Data StopInstanceResponse # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

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 # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

Show StopInstanceResponse # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

Generic StopInstanceResponse # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

Associated Types

type Rep StopInstanceResponse :: Type -> Type #

NFData StopInstanceResponse # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

Methods

rnf :: StopInstanceResponse -> () #

type Rep StopInstanceResponse # 
Instance details

Defined in Network.AWS.Lightsail.StopInstance

type Rep StopInstanceResponse = D1 (MetaData "StopInstanceResponse" "Network.AWS.Lightsail.StopInstance" "amazonka-lightsail-1.6.1-DK54tD67vqE2dEuVa43WK0" False) (C1 (MetaCons "StopInstanceResponse'" PrefixI True) (S1 (MetaSel (Just "_sirsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 (MetaSel (Just "_sirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (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.