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 #

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 #

See: getLoadBalancers smart constructor.

Instances

Eq GetLoadBalancers # 
Data GetLoadBalancers # 

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 # 
Show GetLoadBalancers # 
Generic GetLoadBalancers # 
Hashable GetLoadBalancers # 
ToJSON GetLoadBalancers # 
NFData GetLoadBalancers # 

Methods

rnf :: GetLoadBalancers -> () #

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

Request Lenses

glbPageToken :: Lens' GetLoadBalancers (Maybe Text) #

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

Destructuring the Response

getLoadBalancersResponse #

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 #

See: getLoadBalancersResponse smart constructor.

Instances

Eq GetLoadBalancersResponse # 
Data GetLoadBalancersResponse # 

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 # 
Show GetLoadBalancersResponse # 
Generic GetLoadBalancersResponse # 
NFData GetLoadBalancersResponse # 
type Rep GetLoadBalancersResponse # 
type Rep GetLoadBalancersResponse = D1 * (MetaData "GetLoadBalancersResponse" "Network.AWS.Lightsail.GetLoadBalancers" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" 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) #

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

glbsrsLoadBalancers :: Lens' GetLoadBalancersResponse [LoadBalancer] #

An array of LoadBalancer objects describing your load balancers.

glbsrsResponseStatus :: Lens' GetLoadBalancersResponse Int #

  • - | The response status code.