| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.AWS.KMS.PutKeyPolicy
Description
Attaches a policy to the specified key.
http://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html
Request
data PutKeyPolicy Source
Instances
| Eq PutKeyPolicy | |
| Ord PutKeyPolicy | |
| Read PutKeyPolicy | |
| Show PutKeyPolicy | |
| ToJSON PutKeyPolicy | |
| AWSRequest PutKeyPolicy | |
| ToQuery PutKeyPolicy | |
| ToPath PutKeyPolicy | |
| ToHeaders PutKeyPolicy | |
| type Sv PutKeyPolicy = KMS | |
| type Rs PutKeyPolicy = PutKeyPolicyResponse |
Request constructor
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> PutKeyPolicy |
PutKeyPolicy constructor.
The fields accessible through corresponding lenses are:
Request lenses
pkpKeyId :: Lens' PutKeyPolicy 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
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.