amazonka-kms-0.1.4: 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

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:

Response lenses

gkprPolicy :: Lens' GetKeyPolicyResponse (Maybe Text) Source

A policy document in JSON format.