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 plan keys representing the API keys added to a specified usage plan.
This operation returns paginated results.
Synopsis
- data GetUsagePlanKeys = GetUsagePlanKeys' {}
- newGetUsagePlanKeys :: Text -> GetUsagePlanKeys
- getUsagePlanKeys_nameQuery :: Lens' GetUsagePlanKeys (Maybe Text)
- getUsagePlanKeys_limit :: Lens' GetUsagePlanKeys (Maybe Int)
- getUsagePlanKeys_position :: Lens' GetUsagePlanKeys (Maybe Text)
- getUsagePlanKeys_usagePlanId :: Lens' GetUsagePlanKeys Text
- data GetUsagePlanKeysResponse = GetUsagePlanKeysResponse' {
- items :: Maybe [UsagePlanKey]
- position :: Maybe Text
- httpStatus :: Int
- newGetUsagePlanKeysResponse :: Int -> GetUsagePlanKeysResponse
- getUsagePlanKeysResponse_items :: Lens' GetUsagePlanKeysResponse (Maybe [UsagePlanKey])
- getUsagePlanKeysResponse_position :: Lens' GetUsagePlanKeysResponse (Maybe Text)
- getUsagePlanKeysResponse_httpStatus :: Lens' GetUsagePlanKeysResponse Int
Creating a Request
data GetUsagePlanKeys Source #
The GET request to get all the usage plan keys representing the API keys added to a specified usage plan.
See: newGetUsagePlanKeys
smart constructor.
GetUsagePlanKeys' | |
|
Instances
Create a value of GetUsagePlanKeys
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:nameQuery:GetUsagePlanKeys'
, getUsagePlanKeys_nameQuery
- A query parameter specifying the name of the to-be-returned usage plan
keys.
$sel:limit:GetUsagePlanKeys'
, getUsagePlanKeys_limit
- The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetUsagePlanKeys'
, getUsagePlanKeys_position
- The current pagination position in the paged result set.
$sel:usagePlanId:GetUsagePlanKeys'
, getUsagePlanKeys_usagePlanId
- [Required] The Id of the UsagePlan resource representing the usage plan
containing the to-be-retrieved UsagePlanKey resource representing a plan
customer.
Request Lenses
getUsagePlanKeys_nameQuery :: Lens' GetUsagePlanKeys (Maybe Text) Source #
A query parameter specifying the name of the to-be-returned usage plan keys.
getUsagePlanKeys_limit :: Lens' GetUsagePlanKeys (Maybe Int) Source #
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
getUsagePlanKeys_position :: Lens' GetUsagePlanKeys (Maybe Text) Source #
The current pagination position in the paged result set.
getUsagePlanKeys_usagePlanId :: Lens' GetUsagePlanKeys Text Source #
- Required
- The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.
Destructuring the Response
data GetUsagePlanKeysResponse Source #
Represents the collection of usage plan keys added to usage plans for the associated API keys and, possibly, other types of keys.
See: newGetUsagePlanKeysResponse
smart constructor.
GetUsagePlanKeysResponse' | |
|
Instances
newGetUsagePlanKeysResponse Source #
Create a value of GetUsagePlanKeysResponse
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:GetUsagePlanKeysResponse'
, getUsagePlanKeysResponse_items
- The current page of elements from this collection.
$sel:position:GetUsagePlanKeys'
, getUsagePlanKeysResponse_position
- Undocumented member.
$sel:httpStatus:GetUsagePlanKeysResponse'
, getUsagePlanKeysResponse_httpStatus
- The response's http status code.
Response Lenses
getUsagePlanKeysResponse_items :: Lens' GetUsagePlanKeysResponse (Maybe [UsagePlanKey]) Source #
The current page of elements from this collection.
getUsagePlanKeysResponse_position :: Lens' GetUsagePlanKeysResponse (Maybe Text) Source #
Undocumented member.
getUsagePlanKeysResponse_httpStatus :: Lens' GetUsagePlanKeysResponse Int Source #
The response's http status code.