Safe Haskell | None |
---|---|
Language | Haskell2010 |
Attaches a policy to the specified key.
http://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html
Request
data PutKeyPolicy Source
Request constructor
PutKeyPolicy
constructor.
The fields accessible through corresponding lenses are:
Request lenses
pkpKeyId :: Lens' PutKeyPolicy Text Source
Unique identifier of the key. This can be an ARN, an alias, or a globally unique identifier.
pkpPolicy :: Lens' PutKeyPolicy Text Source
The policy, in JSON format, to be attached to the key.
pkpPolicyName :: Lens' PutKeyPolicy Text Source
Name of the policy to be attached. Currently, the only supported name is "default".
Response
Response constructor
putKeyPolicyResponse :: PutKeyPolicyResponse Source
PutKeyPolicyResponse
constructor.