| 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
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
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.