amazonka-apigateway-1.6.1: Amazon API Gateway 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.APIGateway.GetUsagePlan

Contents

Description

Gets a usage plan of a given plan identifier.

Synopsis

Creating a Request

getUsagePlan Source #

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

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

data GetUsagePlan Source #

The GET request to get a usage plan of a given plan identifier.

See: getUsagePlan smart constructor.

Instances
Eq GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

Data GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

Methods

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

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

toConstr :: GetUsagePlan -> Constr #

dataTypeOf :: GetUsagePlan -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

Show GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

Generic GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

Associated Types

type Rep GetUsagePlan :: Type -> Type #

Hashable GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

AWSRequest GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

Associated Types

type Rs GetUsagePlan :: Type #

ToHeaders GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

ToPath GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

ToQuery GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

NFData GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

Methods

rnf :: GetUsagePlan -> () #

type Rep GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

type Rep GetUsagePlan = D1 (MetaData "GetUsagePlan" "Network.AWS.APIGateway.GetUsagePlan" "amazonka-apigateway-1.6.1-BCCM2RP3l9Q2ENgHvKrj59" True) (C1 (MetaCons "GetUsagePlan'" PrefixI True) (S1 (MetaSel (Just "_gupUsagePlanId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.GetUsagePlan

Request Lenses

gupUsagePlanId :: Lens' GetUsagePlan Text Source #

Required
The identifier of the UsagePlan resource to be retrieved.

Destructuring the Response

usagePlan :: UsagePlan Source #

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

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

  • upApiStages - The associated API stages of a usage plan.
  • upName - The name of a usage plan.
  • upId - The identifier of a UsagePlan resource.
  • upThrottle - The request throttle limits of a usage plan.
  • upQuota - The maximum number of permitted requests per a given unit time interval.
  • upDescription - The description of a usage plan.
  • upProductCode - The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.

data UsagePlan Source #

Represents a usage plan than can specify who can assess associated API stages with specified request limits and quotas.

In a usage plan, you associate an API by specifying the API's Id and a stage name of the specified API. You add plan customers by adding API keys to the plan.

Create and Use Usage Plans

See: usagePlan smart constructor.

Instances
Eq UsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Data UsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Methods

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

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

toConstr :: UsagePlan -> Constr #

dataTypeOf :: UsagePlan -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Show UsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Generic UsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Associated Types

type Rep UsagePlan :: Type -> Type #

Hashable UsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

FromJSON UsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

NFData UsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Methods

rnf :: UsagePlan -> () #

type Rep UsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Response Lenses

upApiStages :: Lens' UsagePlan [APIStage] Source #

The associated API stages of a usage plan.

upName :: Lens' UsagePlan (Maybe Text) Source #

The name of a usage plan.

upId :: Lens' UsagePlan (Maybe Text) Source #

The identifier of a UsagePlan resource.

upThrottle :: Lens' UsagePlan (Maybe ThrottleSettings) Source #

The request throttle limits of a usage plan.

upQuota :: Lens' UsagePlan (Maybe QuotaSettings) Source #

The maximum number of permitted requests per a given unit time interval.

upDescription :: Lens' UsagePlan (Maybe Text) Source #

The description of a usage plan.

upProductCode :: Lens' UsagePlan (Maybe Text) Source #

The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.