Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Gets a usage plan of a given plan identifier.
Synopsis
- data GetUsagePlan = GetUsagePlan' {
- usagePlanId :: Text
- newGetUsagePlan :: Text -> GetUsagePlan
- getUsagePlan_usagePlanId :: Lens' GetUsagePlan Text
- data UsagePlan = UsagePlan' {}
- newUsagePlan :: UsagePlan
- usagePlan_apiStages :: Lens' UsagePlan (Maybe [ApiStage])
- usagePlan_description :: Lens' UsagePlan (Maybe Text)
- usagePlan_id :: Lens' UsagePlan (Maybe Text)
- usagePlan_name :: Lens' UsagePlan (Maybe Text)
- usagePlan_productCode :: Lens' UsagePlan (Maybe Text)
- usagePlan_quota :: Lens' UsagePlan (Maybe QuotaSettings)
- usagePlan_tags :: Lens' UsagePlan (Maybe (HashMap Text Text))
- usagePlan_throttle :: Lens' UsagePlan (Maybe ThrottleSettings)
Creating a Request
data GetUsagePlan Source #
The GET request to get a usage plan of a given plan identifier.
See: newGetUsagePlan
smart constructor.
GetUsagePlan' | |
|
Instances
Create a value of GetUsagePlan
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:
GetUsagePlan
, getUsagePlan_usagePlanId
- The identifier of the UsagePlan resource to be retrieved.
Request Lenses
getUsagePlan_usagePlanId :: Lens' GetUsagePlan Text Source #
The identifier of the UsagePlan resource to be retrieved.
Destructuring the Response
Represents a usage plan used to specify who can assess associated API stages. Optionally, target request rate and quota limits can be set. In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs. Consider using Amazon Web Services Budgets to monitor costs and WAF to manage API requests.
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:description:UsagePlan'
, usagePlan_description
- The description of a usage plan.
$sel:id:UsagePlan'
, usagePlan_id
- The identifier of a UsagePlan resource.
$sel:name:UsagePlan'
, usagePlan_name
- The name 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:quota:UsagePlan'
, usagePlan_quota
- The target maximum number of permitted requests per a given unit time
interval.
$sel:tags:UsagePlan'
, usagePlan_tags
- The collection of tags. Each tag element is associated with a given
resource.
UsagePlan
, usagePlan_throttle
- A map containing method level throttling information for API stage in a
usage plan.
Response Lenses
usagePlan_apiStages :: Lens' UsagePlan (Maybe [ApiStage]) Source #
The associated API stages of a usage plan.
usagePlan_productCode :: Lens' UsagePlan (Maybe Text) Source #
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
usagePlan_quota :: Lens' UsagePlan (Maybe QuotaSettings) Source #
The target maximum number of permitted requests per a given unit time interval.
usagePlan_tags :: Lens' UsagePlan (Maybe (HashMap Text Text)) Source #
The collection of tags. Each tag element is associated with a given resource.
usagePlan_throttle :: Lens' UsagePlan (Maybe ThrottleSettings) Source #
A map containing method level throttling information for API stage in a usage plan.