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.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 # 
Data GetInstances Source # 

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 # 
Show GetInstances Source # 
Generic GetInstances Source # 

Associated Types

type Rep GetInstances :: * -> * #

Hashable GetInstances Source # 
ToJSON GetInstances Source # 
NFData GetInstances Source # 

Methods

rnf :: GetInstances -> () #

AWSPager GetInstances Source # 
AWSRequest GetInstances Source # 
ToHeaders GetInstances Source # 
ToPath GetInstances Source # 
ToQuery GetInstances Source # 
type Rep GetInstances Source # 
type Rep GetInstances = D1 * (MetaData "GetInstances" "Network.AWS.Lightsail.GetInstances" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" True) (C1 * (MetaCons "GetInstances'" PrefixI True) (S1 * (MetaSel (Just Symbol "_giPageToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Text))))
type Rs GetInstances Source # 

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

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 # 
Show GetInstancesResponse Source # 
Generic GetInstancesResponse Source # 
NFData GetInstancesResponse Source # 

Methods

rnf :: GetInstancesResponse -> () #

type Rep GetInstancesResponse Source # 
type Rep GetInstancesResponse = D1 * (MetaData "GetInstancesResponse" "Network.AWS.Lightsail.GetInstances" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" False) (C1 * (MetaCons "GetInstancesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_grsNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_grsInstances") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Instance]))) (S1 * (MetaSel (Just Symbol "_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.