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

Contents

Description

Updates a usage plan of a given plan Id.

Synopsis

Creating a Request

updateUsagePlan Source #

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

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

  • uupPatchOperations - A list of update operations to be applied to the specified resource and in the order specified in this list.
  • uupUsagePlanId - [Required] The Id of the to-be-updated usage plan.

data UpdateUsagePlan Source #

The PATCH request to update a usage plan of a given plan Id.

See: updateUsagePlan smart constructor.

Instances
Eq UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

Data UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

Methods

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

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

toConstr :: UpdateUsagePlan -> Constr #

dataTypeOf :: UpdateUsagePlan -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

Show UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

Generic UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

Associated Types

type Rep UpdateUsagePlan :: Type -> Type #

Hashable UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

ToJSON UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

AWSRequest UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

Associated Types

type Rs UpdateUsagePlan :: Type #

ToHeaders UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

ToPath UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

ToQuery UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

NFData UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

Methods

rnf :: UpdateUsagePlan -> () #

type Rep UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

type Rep UpdateUsagePlan = D1 (MetaData "UpdateUsagePlan" "Network.AWS.APIGateway.UpdateUsagePlan" "amazonka-apigateway-1.6.1-BCCM2RP3l9Q2ENgHvKrj59" False) (C1 (MetaCons "UpdateUsagePlan'" PrefixI True) (S1 (MetaSel (Just "_uupPatchOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PatchOperation])) :*: S1 (MetaSel (Just "_uupUsagePlanId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs UpdateUsagePlan Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateUsagePlan

Request Lenses

uupPatchOperations :: Lens' UpdateUsagePlan [PatchOperation] Source #

A list of update operations to be applied to the specified resource and in the order specified in this list.

uupUsagePlanId :: Lens' UpdateUsagePlan Text Source #

Required
The Id of the to-be-updated usage plan.

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.