| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.KMS.ListKeys
Description
Gets a list of all customer master keys (CMKs) in the caller's AWS account and region.
This operation returns paginated results.
Synopsis
- listKeys :: ListKeys
- data ListKeys
- lkMarker :: Lens' ListKeys (Maybe Text)
- lkLimit :: Lens' ListKeys (Maybe Natural)
- listKeysResponse :: Int -> ListKeysResponse
- data ListKeysResponse
- lkrsTruncated :: Lens' ListKeysResponse (Maybe Bool)
- lkrsKeys :: Lens' ListKeysResponse [KeyListEntry]
- lkrsNextMarker :: Lens' ListKeysResponse (Maybe Text)
- lkrsResponseStatus :: Lens' ListKeysResponse Int
Creating a Request
Creates a value of ListKeys with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lkMarker- Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value ofNextMarkerfrom the truncated response you just received.lkLimit- Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer. This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.
See: listKeys smart constructor.
Instances
Request Lenses
lkMarker :: Lens' ListKeys (Maybe Text) Source #
Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received.
lkLimit :: Lens' ListKeys (Maybe Natural) Source #
Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer. This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.
Destructuring the Response
Arguments
| :: Int | |
| -> ListKeysResponse |
Creates a value of ListKeysResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lkrsTruncated- A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To get more items, pass the value of theNextMarkerelement in this response to theMarkerparameter in a subsequent request.lkrsKeys- A list of customer master keys (CMKs).lkrsNextMarker- WhenTruncatedis true, this element is present and contains the value to use for theMarkerparameter in a subsequent request.lkrsResponseStatus- -- | The response status code.
data ListKeysResponse Source #
See: listKeysResponse smart constructor.
Instances
Response Lenses
lkrsTruncated :: Lens' ListKeysResponse (Maybe Bool) Source #
A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To get more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.
lkrsKeys :: Lens' ListKeysResponse [KeyListEntry] Source #
A list of customer master keys (CMKs).
lkrsNextMarker :: Lens' ListKeysResponse (Maybe Text) Source #
When Truncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent request.
lkrsResponseStatus :: Lens' ListKeysResponse Int Source #
- - | The response status code.