| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.APIGateway.UpdateUsage
Description
Grants a temporary extension to the reamining quota of a usage plan associated with a specified API key.
- updateUsage :: Text -> Text -> UpdateUsage
- data UpdateUsage
- uuPatchOperations :: Lens' UpdateUsage [PatchOperation]
- uuUsagePlanId :: Lens' UpdateUsage Text
- uuKeyId :: Lens' UpdateUsage Text
- usage :: Usage
- data Usage
- uUsagePlanId :: Lens' Usage (Maybe Text)
- uEndDate :: Lens' Usage (Maybe Text)
- uItems :: Lens' Usage (HashMap Text [[Integer]])
- uStartDate :: Lens' Usage (Maybe Text)
- uPosition :: Lens' Usage (Maybe Text)
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> UpdateUsage |
Creates a value of UpdateUsage with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateUsage Source #
The PATCH request to grant a temporary extension to the reamining quota of a usage plan associated with a specified API key.
See: updateUsage smart constructor.
Instances
Request Lenses
uuPatchOperations :: Lens' UpdateUsage [PatchOperation] Source #
A list of update operations to be applied to the specified resource and in the order specified in this list.
uuUsagePlanId :: Lens' UpdateUsage Text Source #
The Id of the usage plan associated with the usage data.
uuKeyId :: Lens' UpdateUsage Text Source #
The identifier of the API key associated with the usage plan in which a temporary extension is granted to the remaining quota.
Destructuring the Response
Creates a value of Usage with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Represents the usage data of a usage plan.
Create and Use Usage Plans, Manage Usage in a Usage Plan
See: usage smart constructor.
Response Lenses
uItems :: Lens' Usage (HashMap Text [[Integer]]) Source #
The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, '{..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}', where '{api_key}' stands for an API key value and the daily log entry is of the format '[used quota, remaining quota]'.