amazonka-kms-0.3.0: Amazon Key Management Service SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.KMS.GetKeyPolicy

Contents

Description

Retrieves a policy attached to the specified key.

http://docs.aws.amazon.com/kms/latest/APIReference/API_GetKeyPolicy.html

Synopsis

Request

Request constructor

getKeyPolicy Source

GetKeyPolicy constructor.

The fields accessible through corresponding lenses are:

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:

Response lenses

gkprPolicy :: Lens' GetKeyPolicyResponse (Maybe Text) Source

A policy document in JSON format.