amazonka-lightsail-1.5.0: Amazon Lightsail SDK.

Copyright(c) 2013-2017 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.GetInstanceState

Contents

Description

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

Synopsis

Creating a Request

getInstanceState Source #

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

See: getInstanceState smart constructor.

Instances

Eq GetInstanceState Source # 
Data GetInstanceState Source # 

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 Source # 
Show GetInstanceState Source # 
Generic GetInstanceState Source # 
Hashable GetInstanceState Source # 
ToJSON GetInstanceState Source # 
NFData GetInstanceState Source # 

Methods

rnf :: GetInstanceState -> () #

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

Request Lenses

gisInstanceName :: Lens' GetInstanceState Text Source #

The name of the instance to get state information about.

Destructuring the Response

getInstanceStateResponse Source #

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

See: getInstanceStateResponse smart constructor.

Instances

Eq GetInstanceStateResponse Source # 
Data GetInstanceStateResponse Source # 

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 Source # 
Show GetInstanceStateResponse Source # 
Generic GetInstanceStateResponse Source # 
NFData GetInstanceStateResponse Source # 
type Rep GetInstanceStateResponse Source # 
type Rep GetInstanceStateResponse = D1 (MetaData "GetInstanceStateResponse" "Network.AWS.Lightsail.GetInstanceState" "amazonka-lightsail-1.5.0-E35HA2Q1qxxGaFNVAGVi4N" False) (C1 (MetaCons "GetInstanceStateResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_getrsState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe InstanceState))) (S1 (MetaSel (Just Symbol "_getrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses