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 |
Lists the API keys for a given API.
API keys are deleted automatically 60 days after they expire. However,
they may still be included in the response until they have actually been
deleted. You can safely call DeleteApiKey
to manually delete a key
before it's automatically deleted.
This operation returns paginated results.
Synopsis
- data ListApiKeys = ListApiKeys' {}
- newListApiKeys :: Text -> ListApiKeys
- listApiKeys_maxResults :: Lens' ListApiKeys (Maybe Natural)
- listApiKeys_nextToken :: Lens' ListApiKeys (Maybe Text)
- listApiKeys_apiId :: Lens' ListApiKeys Text
- data ListApiKeysResponse = ListApiKeysResponse' {}
- newListApiKeysResponse :: Int -> ListApiKeysResponse
- listApiKeysResponse_apiKeys :: Lens' ListApiKeysResponse (Maybe [ApiKey])
- listApiKeysResponse_nextToken :: Lens' ListApiKeysResponse (Maybe Text)
- listApiKeysResponse_httpStatus :: Lens' ListApiKeysResponse Int
Creating a Request
data ListApiKeys Source #
See: newListApiKeys
smart constructor.
Instances
Create a value of ListApiKeys
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:maxResults:ListApiKeys'
, listApiKeys_maxResults
- The maximum number of results that you want the request to return.
ListApiKeys
, listApiKeys_nextToken
- An identifier that was returned from the previous call to this
operation, which you can use to return the next set of items in the
list.
ListApiKeys
, listApiKeys_apiId
- The API ID.
Request Lenses
listApiKeys_maxResults :: Lens' ListApiKeys (Maybe Natural) Source #
The maximum number of results that you want the request to return.
listApiKeys_nextToken :: Lens' ListApiKeys (Maybe Text) Source #
An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
listApiKeys_apiId :: Lens' ListApiKeys Text Source #
The API ID.
Destructuring the Response
data ListApiKeysResponse Source #
See: newListApiKeysResponse
smart constructor.
Instances
newListApiKeysResponse Source #
Create a value of ListApiKeysResponse
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:apiKeys:ListApiKeysResponse'
, listApiKeysResponse_apiKeys
- The ApiKey
objects.
ListApiKeys
, listApiKeysResponse_nextToken
- An identifier to pass in the next request to this operation to return
the next set of items in the list.
$sel:httpStatus:ListApiKeysResponse'
, listApiKeysResponse_httpStatus
- The response's http status code.
Response Lenses
listApiKeysResponse_apiKeys :: Lens' ListApiKeysResponse (Maybe [ApiKey]) Source #
The ApiKey
objects.
listApiKeysResponse_nextToken :: Lens' ListApiKeysResponse (Maybe Text) Source #
An identifier to pass in the next request to this operation to return the next set of items in the list.
listApiKeysResponse_httpStatus :: Lens' ListApiKeysResponse Int Source #
The response's http status code.