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

Contents

Description

Returns information about a specific Amazon Lightsail instance, which is a virtual private server.

Synopsis

Creating a Request

getInstance Source #

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

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

data GetInstance Source #

See: getInstance smart constructor.

Instances

Eq GetInstance Source # 
Data GetInstance Source # 

Methods

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

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

toConstr :: GetInstance -> Constr #

dataTypeOf :: GetInstance -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetInstance Source # 
Show GetInstance Source # 
Generic GetInstance Source # 

Associated Types

type Rep GetInstance :: * -> * #

Hashable GetInstance Source # 
ToJSON GetInstance Source # 
NFData GetInstance Source # 

Methods

rnf :: GetInstance -> () #

AWSRequest GetInstance Source # 
ToPath GetInstance Source # 
ToHeaders GetInstance Source # 

Methods

toHeaders :: GetInstance -> [Header] #

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

Request Lenses

giInstanceName :: Lens' GetInstance Text Source #

The name of the instance.

Destructuring the Response

getInstanceResponse Source #

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

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

data GetInstanceResponse Source #

See: getInstanceResponse smart constructor.

Instances

Eq GetInstanceResponse Source # 
Data GetInstanceResponse Source # 

Methods

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

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

toConstr :: GetInstanceResponse -> Constr #

dataTypeOf :: GetInstanceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetInstanceResponse Source # 
Show GetInstanceResponse Source # 
Generic GetInstanceResponse Source # 
NFData GetInstanceResponse Source # 

Methods

rnf :: GetInstanceResponse -> () #

type Rep GetInstanceResponse Source # 
type Rep GetInstanceResponse = D1 (MetaData "GetInstanceResponse" "Network.AWS.Lightsail.GetInstance" "amazonka-lightsail-1.4.5-5jz0XqtfwkUBGV0E8NKblJ" False) (C1 (MetaCons "GetInstanceResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_girsInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Instance))) (S1 (MetaSel (Just Symbol "_girsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

girsInstance :: Lens' GetInstanceResponse (Maybe Instance) Source #

An array of key-value pairs containing information about the specified instance.

girsResponseStatus :: Lens' GetInstanceResponse Int Source #

  • - | The response status code.