Safe Haskell | None |
---|---|
Language | Haskell2010 |
Retrieves a list of policies attached to a key.
http://docs.aws.amazon.com/kms/latest/APIReference/API_ListKeyPolicies.html
- data ListKeyPolicies
- listKeyPolicies :: Text -> ListKeyPolicies
- lkpKeyId :: Lens' ListKeyPolicies Text
- lkpLimit :: Lens' ListKeyPolicies (Maybe Natural)
- lkpMarker :: Lens' ListKeyPolicies (Maybe Text)
- data ListKeyPoliciesResponse
- listKeyPoliciesResponse :: ListKeyPoliciesResponse
- lkprNextMarker :: Lens' ListKeyPoliciesResponse (Maybe Text)
- lkprPolicyNames :: Lens' ListKeyPoliciesResponse [Text]
- lkprTruncated :: Lens' ListKeyPoliciesResponse (Maybe Bool)
Request
data ListKeyPolicies Source
Request constructor
Request lenses
lkpKeyId :: Lens' ListKeyPolicies Text Source
Unique identifier of the key. This can be an ARN, an alias, or a globally unique identifier.
lkpLimit :: Lens' ListKeyPolicies (Maybe Natural) Source
Specify this parameter only when paginating results to indicate the maximum number of policies you want listed in the response. If there are additional policies beyond the maximum you specify, the Truncated response element will be set to true.
lkpMarker :: Lens' ListKeyPolicies (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
Response constructor
listKeyPoliciesResponse :: ListKeyPoliciesResponse Source
ListKeyPoliciesResponse
constructor.
The fields accessible through corresponding lenses are:
lkprNextMarker
::
Maybe
Text
lkprPolicyNames
::
[Text
]lkprTruncated
::
Maybe
Bool
Response lenses
lkprNextMarker :: Lens' ListKeyPoliciesResponse (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.
lkprPolicyNames :: Lens' ListKeyPoliciesResponse [Text] Source
A list of policy names. Currently, there is only one policy and it is named Default.
lkprTruncated :: Lens' ListKeyPoliciesResponse (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 policies in the list.