amazonka-apigateway-1.5.0: Amazon API Gateway SDK.

Copyright(c) 2013-2017 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.APIGateway.GetUsagePlans

Contents

Description

Gets all the usage plans of the caller's account.

This operation returns paginated results.

Synopsis

Creating a Request

getUsagePlans :: GetUsagePlans Source #

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

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

  • gupKeyId - The identifier of the API key associated with the usage plans.
  • gupLimit - The maximum number of returned results per page.
  • gupPosition - The current pagination position in the paged result set.

data GetUsagePlans Source #

The GET request to get all the usage plans of the caller's account.

See: getUsagePlans smart constructor.

Instances

Eq GetUsagePlans Source # 
Data GetUsagePlans Source # 

Methods

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

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

toConstr :: GetUsagePlans -> Constr #

dataTypeOf :: GetUsagePlans -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetUsagePlans Source # 
Show GetUsagePlans Source # 
Generic GetUsagePlans Source # 

Associated Types

type Rep GetUsagePlans :: * -> * #

Hashable GetUsagePlans Source # 
NFData GetUsagePlans Source # 

Methods

rnf :: GetUsagePlans -> () #

AWSPager GetUsagePlans Source # 
AWSRequest GetUsagePlans Source # 
ToQuery GetUsagePlans Source # 
ToPath GetUsagePlans Source # 
ToHeaders GetUsagePlans Source # 
type Rep GetUsagePlans Source # 
type Rep GetUsagePlans = D1 (MetaData "GetUsagePlans" "Network.AWS.APIGateway.GetUsagePlans" "amazonka-apigateway-1.5.0-3jDq4KKltGt78uikPpOCEJ" False) (C1 (MetaCons "GetUsagePlans'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gupKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gupLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_gupPosition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Rs GetUsagePlans Source # 

Request Lenses

gupKeyId :: Lens' GetUsagePlans (Maybe Text) Source #

The identifier of the API key associated with the usage plans.

gupLimit :: Lens' GetUsagePlans (Maybe Int) Source #

The maximum number of returned results per page.

gupPosition :: Lens' GetUsagePlans (Maybe Text) Source #

The current pagination position in the paged result set.

Destructuring the Response

getUsagePlansResponse Source #

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

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

data GetUsagePlansResponse Source #

Represents a collection of usage plans for an AWS account.

Create and Use Usage Plans

See: getUsagePlansResponse smart constructor.

Instances

Eq GetUsagePlansResponse Source # 
Data GetUsagePlansResponse Source # 

Methods

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

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

toConstr :: GetUsagePlansResponse -> Constr #

dataTypeOf :: GetUsagePlansResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetUsagePlansResponse Source # 
Show GetUsagePlansResponse Source # 
Generic GetUsagePlansResponse Source # 
NFData GetUsagePlansResponse Source # 

Methods

rnf :: GetUsagePlansResponse -> () #

type Rep GetUsagePlansResponse Source # 
type Rep GetUsagePlansResponse = D1 (MetaData "GetUsagePlansResponse" "Network.AWS.APIGateway.GetUsagePlans" "amazonka-apigateway-1.5.0-3jDq4KKltGt78uikPpOCEJ" False) (C1 (MetaCons "GetUsagePlansResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_guprsItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [UsagePlan]))) ((:*:) (S1 (MetaSel (Just Symbol "_guprsPosition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_guprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

guprsItems :: Lens' GetUsagePlansResponse [UsagePlan] Source #

The current page of elements from this collection.

guprsResponseStatus :: Lens' GetUsagePlansResponse Int Source #

  • - | The response status code.