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
A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key. Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 Globally Unique Key ID Example - 12345678-1234-1234-123456789012
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.