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 |
Gets all the usage plans of the caller's account.
This operation returns paginated results.
Synopsis
- data GetUsagePlans = GetUsagePlans' {}
- newGetUsagePlans :: GetUsagePlans
- getUsagePlans_keyId :: Lens' GetUsagePlans (Maybe Text)
- getUsagePlans_limit :: Lens' GetUsagePlans (Maybe Int)
- getUsagePlans_position :: Lens' GetUsagePlans (Maybe Text)
- data GetUsagePlansResponse = GetUsagePlansResponse' {}
- newGetUsagePlansResponse :: Int -> GetUsagePlansResponse
- getUsagePlansResponse_items :: Lens' GetUsagePlansResponse (Maybe [UsagePlan])
- getUsagePlansResponse_position :: Lens' GetUsagePlansResponse (Maybe Text)
- getUsagePlansResponse_httpStatus :: Lens' GetUsagePlansResponse Int
Creating a Request
data GetUsagePlans Source #
The GET request to get all the usage plans of the caller's account.
See: newGetUsagePlans
smart constructor.
Instances
newGetUsagePlans :: GetUsagePlans Source #
Create a value of GetUsagePlans
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:keyId:GetUsagePlans'
, getUsagePlans_keyId
- The identifier of the API key associated with the usage plans.
$sel:limit:GetUsagePlans'
, getUsagePlans_limit
- The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetUsagePlans'
, getUsagePlans_position
- The current pagination position in the paged result set.
Request Lenses
getUsagePlans_keyId :: Lens' GetUsagePlans (Maybe Text) Source #
The identifier of the API key associated with the usage plans.
getUsagePlans_limit :: Lens' GetUsagePlans (Maybe Int) Source #
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
getUsagePlans_position :: Lens' GetUsagePlans (Maybe Text) Source #
The current pagination position in the paged result set.
Destructuring the Response
data GetUsagePlansResponse Source #
Represents a collection of usage plans for an AWS account.
See: newGetUsagePlansResponse
smart constructor.
Instances
newGetUsagePlansResponse Source #
Create a value of GetUsagePlansResponse
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:items:GetUsagePlansResponse'
, getUsagePlansResponse_items
- The current page of elements from this collection.
$sel:position:GetUsagePlans'
, getUsagePlansResponse_position
- Undocumented member.
$sel:httpStatus:GetUsagePlansResponse'
, getUsagePlansResponse_httpStatus
- The response's http status code.
Response Lenses
getUsagePlansResponse_items :: Lens' GetUsagePlansResponse (Maybe [UsagePlan]) Source #
The current page of elements from this collection.
getUsagePlansResponse_position :: Lens' GetUsagePlansResponse (Maybe Text) Source #
Undocumented member.
getUsagePlansResponse_httpStatus :: Lens' GetUsagePlansResponse Int Source #
The response's http status code.