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

Contents

Description

Returns information about all Amazon Lightsail virtual private servers, or instances .

This operation returns paginated results.

Synopsis

Creating a Request

getInstances :: GetInstances Source #

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

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

  • giPageToken - A token used for advancing to the next page of results from your get instances request.

data GetInstances Source #

See: getInstances smart constructor.

Instances
Eq GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Data GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Methods

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

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

toConstr :: GetInstances -> Constr #

dataTypeOf :: GetInstances -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Show GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Generic GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Associated Types

type Rep GetInstances :: Type -> Type #

Hashable GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

ToJSON GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

AWSPager GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

AWSRequest GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Associated Types

type Rs GetInstances :: Type #

ToHeaders GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

ToPath GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

ToQuery GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

NFData GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Methods

rnf :: GetInstances -> () #

type Rep GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

type Rep GetInstances = D1 (MetaData "GetInstances" "Network.AWS.Lightsail.GetInstances" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" True) (C1 (MetaCons "GetInstances'" PrefixI True) (S1 (MetaSel (Just "_giPageToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))
type Rs GetInstances Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Request Lenses

giPageToken :: Lens' GetInstances (Maybe Text) Source #

A token used for advancing to the next page of results from your get instances request.

Destructuring the Response

getInstancesResponse Source #

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

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

  • grsNextPageToken - A token used for advancing to the next page of results from your get instances request.
  • grsInstances - An array of key-value pairs containing information about your instances.
  • grsResponseStatus - -- | The response status code.

data GetInstancesResponse Source #

See: getInstancesResponse smart constructor.

Instances
Eq GetInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Data GetInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Methods

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

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

toConstr :: GetInstancesResponse -> Constr #

dataTypeOf :: GetInstancesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Show GetInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Generic GetInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Associated Types

type Rep GetInstancesResponse :: Type -> Type #

NFData GetInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

Methods

rnf :: GetInstancesResponse -> () #

type Rep GetInstancesResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.GetInstances

type Rep GetInstancesResponse = D1 (MetaData "GetInstancesResponse" "Network.AWS.Lightsail.GetInstances" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" False) (C1 (MetaCons "GetInstancesResponse'" PrefixI True) (S1 (MetaSel (Just "_grsNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_grsInstances") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Instance])) :*: S1 (MetaSel (Just "_grsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

grsNextPageToken :: Lens' GetInstancesResponse (Maybe Text) Source #

A token used for advancing to the next page of results from your get instances request.

grsInstances :: Lens' GetInstancesResponse [Instance] Source #

An array of key-value pairs containing information about your instances.

grsResponseStatus :: Lens' GetInstancesResponse Int Source #

  • - | The response status code.