Safe Haskell | None |
---|---|
Language | Haskell2010 |
List the grants for a specified key.
http://docs.aws.amazon.com/kms/latest/APIReference/API_ListGrants.html
- data ListGrants
- listGrants :: Text -> ListGrants
- lgKeyId :: Lens' ListGrants Text
- lgLimit :: Lens' ListGrants (Maybe Natural)
- lgMarker :: Lens' ListGrants (Maybe Text)
- data ListGrantsResponse
- listGrantsResponse :: ListGrantsResponse
- lgrGrants :: Lens' ListGrantsResponse [GrantListEntry]
- lgrNextMarker :: Lens' ListGrantsResponse (Maybe Text)
- lgrTruncated :: Lens' ListGrantsResponse (Maybe Bool)
Request
data ListGrants Source
Request constructor
:: Text | |
-> ListGrants |
Request lenses
lgKeyId :: Lens' ListGrants Text Source
Unique identifier of the key. This can be an ARN, an alias, or a globally unique identifier.
lgLimit :: Lens' ListGrants (Maybe Natural) Source
Specify this parameter only when paginating results to indicate the maximum number of grants you want listed in the response. If there are additional grants beyond the maximum you specify, the Truncated response element will be set to true.
lgMarker :: Lens' ListGrants (Maybe Text) Source
Use this parameter only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the NextMarker in the response you just received.
Response
data ListGrantsResponse Source
Response constructor
listGrantsResponse :: ListGrantsResponse Source
ListGrantsResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
lgrGrants :: Lens' ListGrantsResponse [GrantListEntry] Source
A list of grants.
lgrNextMarker :: Lens' ListGrantsResponse (Maybe Text) Source
If Truncated is true, this value is present and contains the value to use for the Marker request parameter in a subsequent pagination request.
lgrTruncated :: Lens' ListGrantsResponse (Maybe Bool) Source
A flag that indicates whether there are more items in the list. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more grants in the list.