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

Contents

Description

Returns the state of a specific instance. Works on one instance at a time.

Synopsis

Creating a Request

getInstanceState #

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

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

data GetInstanceState #

See: getInstanceState smart constructor.

Instances

Eq GetInstanceState # 
Data GetInstanceState # 

Methods

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

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

toConstr :: GetInstanceState -> Constr #

dataTypeOf :: GetInstanceState -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetInstanceState # 
Show GetInstanceState # 
Generic GetInstanceState # 
Hashable GetInstanceState # 
ToJSON GetInstanceState # 
NFData GetInstanceState # 

Methods

rnf :: GetInstanceState -> () #

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

Request Lenses

gisInstanceName :: Lens' GetInstanceState Text #

The name of the instance to get state information about.

Destructuring the Response

getInstanceStateResponse #

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

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

data GetInstanceStateResponse #

See: getInstanceStateResponse smart constructor.

Instances

Eq GetInstanceStateResponse # 
Data GetInstanceStateResponse # 

Methods

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

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

toConstr :: GetInstanceStateResponse -> Constr #

dataTypeOf :: GetInstanceStateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetInstanceStateResponse # 
Show GetInstanceStateResponse # 
Generic GetInstanceStateResponse # 
NFData GetInstanceStateResponse # 
type Rep GetInstanceStateResponse # 
type Rep GetInstanceStateResponse = D1 (MetaData "GetInstanceStateResponse" "Network.AWS.Lightsail.GetInstanceState" "amazonka-lightsail-1.4.5-1xtmakXHWr2BG215OJNbvq" False) (C1 (MetaCons "GetInstanceStateResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_getrsState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe InstanceState))) (S1 (MetaSel (Just Symbol "_getrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

getrsResponseStatus :: Lens' GetInstanceStateResponse Int #

  • - | The response status code.