amazonka-lightsail-1.6.0: 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.GetInstance

Contents

Description

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

Synopsis

Creating a Request

getInstance #

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 #

See: getInstance smart constructor.

Instances
Eq GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

Data GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

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

Defined in Network.AWS.Lightsail.GetInstance

Show GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

Generic GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

Associated Types

type Rep GetInstance :: * -> * #

Hashable GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

ToJSON GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

AWSRequest GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

Associated Types

type Rs GetInstance :: * #

ToHeaders GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

Methods

toHeaders :: GetInstance -> [Header] #

ToPath GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

ToQuery GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

NFData GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

Methods

rnf :: GetInstance -> () #

type Rep GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

type Rep GetInstance = D1 (MetaData "GetInstance" "Network.AWS.Lightsail.GetInstance" "amazonka-lightsail-1.6.0-KbsnSgop875C22ikCzX5R7" True) (C1 (MetaCons "GetInstance'" PrefixI True) (S1 (MetaSel (Just "_giInstanceName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetInstance # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

Request Lenses

giInstanceName :: Lens' GetInstance Text #

The name of the instance.

Destructuring the Response

getInstanceResponse #

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 #

See: getInstanceResponse smart constructor.

Instances
Eq GetInstanceResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

Data GetInstanceResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

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

Defined in Network.AWS.Lightsail.GetInstance

Show GetInstanceResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

Generic GetInstanceResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

Associated Types

type Rep GetInstanceResponse :: * -> * #

NFData GetInstanceResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

Methods

rnf :: GetInstanceResponse -> () #

type Rep GetInstanceResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetInstance

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

Response Lenses

girsInstance :: Lens' GetInstanceResponse (Maybe Instance) #

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

girsResponseStatus :: Lens' GetInstanceResponse Int #

  • - | The response status code.