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

Contents

Description

Returns information about all load balancers in an account.

If you are describing a long list of load balancers, you can paginate the output to make the list more manageable. You can use the pageToken and nextPageToken values to retrieve the next items in the list.

Synopsis

Creating a Request

getLoadBalancers :: GetLoadBalancers Source #

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

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

  • glbPageToken - A token used for paginating the results from your GetLoadBalancers request.

data GetLoadBalancers Source #

See: getLoadBalancers smart constructor.

Instances

Eq GetLoadBalancers Source # 
Data GetLoadBalancers Source # 

Methods

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

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

toConstr :: GetLoadBalancers -> Constr #

dataTypeOf :: GetLoadBalancers -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetLoadBalancers Source # 
Show GetLoadBalancers Source # 
Generic GetLoadBalancers Source # 
Hashable GetLoadBalancers Source # 
ToJSON GetLoadBalancers Source # 
NFData GetLoadBalancers Source # 

Methods

rnf :: GetLoadBalancers -> () #

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

Request Lenses

glbPageToken :: Lens' GetLoadBalancers (Maybe Text) Source #

A token used for paginating the results from your GetLoadBalancers request.

Destructuring the Response

getLoadBalancersResponse Source #

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

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

data GetLoadBalancersResponse Source #

See: getLoadBalancersResponse smart constructor.

Instances

Eq GetLoadBalancersResponse Source # 
Data GetLoadBalancersResponse Source # 

Methods

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

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

toConstr :: GetLoadBalancersResponse -> Constr #

dataTypeOf :: GetLoadBalancersResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetLoadBalancersResponse Source # 
Show GetLoadBalancersResponse Source # 
Generic GetLoadBalancersResponse Source # 
NFData GetLoadBalancersResponse Source # 
type Rep GetLoadBalancersResponse Source # 
type Rep GetLoadBalancersResponse = D1 * (MetaData "GetLoadBalancersResponse" "Network.AWS.Lightsail.GetLoadBalancers" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" False) (C1 * (MetaCons "GetLoadBalancersResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_glbsrsNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_glbsrsLoadBalancers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [LoadBalancer]))) (S1 * (MetaSel (Just Symbol "_glbsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

glbsrsNextPageToken :: Lens' GetLoadBalancersResponse (Maybe Text) Source #

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

glbsrsLoadBalancers :: Lens' GetLoadBalancersResponse [LoadBalancer] Source #

An array of LoadBalancer objects describing your load balancers.