Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Updates a usage plan of a given plan Id.
Synopsis
- updateUsagePlan :: Text -> UpdateUsagePlan
- data UpdateUsagePlan
- uupPatchOperations :: Lens' UpdateUsagePlan [PatchOperation]
- uupUsagePlanId :: Lens' UpdateUsagePlan Text
- usagePlan :: UsagePlan
- data UsagePlan
- upApiStages :: Lens' UsagePlan [APIStage]
- upName :: Lens' UsagePlan (Maybe Text)
- upId :: Lens' UsagePlan (Maybe Text)
- upThrottle :: Lens' UsagePlan (Maybe ThrottleSettings)
- upQuota :: Lens' UsagePlan (Maybe QuotaSettings)
- upDescription :: Lens' UsagePlan (Maybe Text)
- upProductCode :: Lens' UsagePlan (Maybe Text)
Creating a Request
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
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 aUsagePlan
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.
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.
See: usagePlan
smart constructor.
Instances
Response Lenses
upThrottle :: Lens' UsagePlan (Maybe ThrottleSettings) Source #
The request throttle limits of a usage plan.