| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.KMS.ListKeys
Description
Lists the customer master keys.
This operation returns paginated results.
- 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 only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value ofNextMarkerfrom the response you just received.lkLimit- When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, theTruncatedelement in the response is set to true. 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 only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the response you just received.
lkLimit :: Lens' ListKeys (Maybe Natural) Source #
When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the Truncated element in the response is set to true. 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. If your results were truncated, you can use theMarkerparameter to make a subsequent pagination request to retrieve more items in the list.lkrsKeys- A list of keys.lkrsNextMarker- WhenTruncatedis true, this value is present and contains the value to use for theMarkerparameter in a subsequent pagination request.lkrsResponseStatus- -- | The response status code.
data ListKeysResponse Source #
See: listKeysResponse smart constructor.
Response Lenses
lkrsTruncated :: Lens' ListKeysResponse (Maybe Bool) Source #
A flag that indicates whether there are more items in the list. If your results were truncated, you can use the Marker parameter to make a subsequent pagination request to retrieve more items in the list.
lkrsKeys :: Lens' ListKeysResponse [KeyListEntry] Source #
A list of keys.
lkrsNextMarker :: Lens' ListKeysResponse (Maybe Text) Source #
When Truncated is true, this value is present and contains the value to use for the Marker parameter in a subsequent pagination request.
lkrsResponseStatus :: Lens' ListKeysResponse Int Source #
- - | The response status code.