Copyright | (c) 2013-2021 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 |
Updates a usage plan of a given plan Id.
Synopsis
- data UpdateUsagePlan = UpdateUsagePlan' {}
- newUpdateUsagePlan :: Text -> UpdateUsagePlan
- updateUsagePlan_patchOperations :: Lens' UpdateUsagePlan (Maybe [PatchOperation])
- updateUsagePlan_usagePlanId :: Lens' UpdateUsagePlan Text
- data UsagePlan = UsagePlan' {}
- newUsagePlan :: UsagePlan
- usagePlan_apiStages :: Lens' UsagePlan (Maybe [ApiStage])
- usagePlan_name :: Lens' UsagePlan (Maybe Text)
- usagePlan_id :: Lens' UsagePlan (Maybe Text)
- usagePlan_throttle :: Lens' UsagePlan (Maybe ThrottleSettings)
- usagePlan_quota :: Lens' UsagePlan (Maybe QuotaSettings)
- usagePlan_description :: Lens' UsagePlan (Maybe Text)
- usagePlan_productCode :: Lens' UsagePlan (Maybe Text)
- usagePlan_tags :: Lens' UsagePlan (Maybe (HashMap Text Text))
Creating a Request
data UpdateUsagePlan Source #
The PATCH request to update a usage plan of a given plan Id.
See: newUpdateUsagePlan
smart constructor.
UpdateUsagePlan' | |
|
Instances
Create a value of UpdateUsagePlan
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:patchOperations:UpdateUsagePlan'
, updateUsagePlan_patchOperations
- A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:usagePlanId:UpdateUsagePlan'
, updateUsagePlan_usagePlanId
- [Required] The Id of the to-be-updated usage plan.
Request Lenses
updateUsagePlan_patchOperations :: Lens' UpdateUsagePlan (Maybe [PatchOperation]) Source #
A list of update operations to be applied to the specified resource and in the order specified in this list.
updateUsagePlan_usagePlanId :: Lens' UpdateUsagePlan Text Source #
- Required
- The Id of the to-be-updated usage plan.
Destructuring the Response
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: newUsagePlan
smart constructor.
UsagePlan' | |
|
Instances
newUsagePlan :: UsagePlan Source #
Create a value of UsagePlan
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:apiStages:UsagePlan'
, usagePlan_apiStages
- The associated API stages of a usage plan.
$sel:name:UsagePlan'
, usagePlan_name
- The name of a usage plan.
$sel:id:UsagePlan'
, usagePlan_id
- The identifier of a UsagePlan resource.
$sel:throttle:UsagePlan'
, usagePlan_throttle
- The request throttle limits of a usage plan.
$sel:quota:UsagePlan'
, usagePlan_quota
- The maximum number of permitted requests per a given unit time interval.
$sel:description:UsagePlan'
, usagePlan_description
- The description of a usage plan.
$sel:productCode:UsagePlan'
, usagePlan_productCode
- The AWS Markeplace product identifier to associate with the usage plan
as a SaaS product on AWS Marketplace.
$sel:tags:UsagePlan'
, usagePlan_tags
- The collection of tags. Each tag element is associated with a given
resource.
Response Lenses
usagePlan_apiStages :: Lens' UsagePlan (Maybe [ApiStage]) Source #
The associated API stages of a usage plan.
usagePlan_throttle :: Lens' UsagePlan (Maybe ThrottleSettings) Source #
The request throttle limits of a usage plan.
usagePlan_quota :: Lens' UsagePlan (Maybe QuotaSettings) Source #
The maximum number of permitted requests per a given unit time interval.