| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.AWS.KMS.GetKeyPolicy
Description
Retrieves a policy attached to the specified key.
http://docs.aws.amazon.com/kms/latest/APIReference/API_GetKeyPolicy.html
Request
data GetKeyPolicy Source
Request constructor
Arguments
| :: Text | |
| -> Text | |
| -> GetKeyPolicy |
GetKeyPolicy constructor.
The fields accessible through corresponding lenses are:
gkpKeyId::TextgkpPolicyName::Text
Request lenses
gkpKeyId :: Lens' GetKeyPolicy Text Source
Unique identifier of the key. This can be an ARN, an alias, or a globally unique identifier.
gkpPolicyName :: Lens' GetKeyPolicy Text Source
String that contains the name of the policy. Currently, this must be
"default". Policy names can be discovered by calling ListKeyPolicies.
Response
Response constructor
getKeyPolicyResponse :: GetKeyPolicyResponse Source
GetKeyPolicyResponse constructor.
The fields accessible through corresponding lenses are:
gkprPolicy::MaybeText
Response lenses
gkprPolicy :: Lens' GetKeyPolicyResponse (Maybe Text) Source
A policy document in JSON format.