Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Retrieves a policy attached to the specified key.
- getKeyPolicy :: Text -> Text -> GetKeyPolicy
- data GetKeyPolicy
- gkpKeyId :: Lens' GetKeyPolicy Text
- gkpPolicyName :: Lens' GetKeyPolicy Text
- getKeyPolicyResponse :: Int -> GetKeyPolicyResponse
- data GetKeyPolicyResponse
- gkprsPolicy :: Lens' GetKeyPolicyResponse (Maybe Text)
- gkprsResponseStatus :: Lens' GetKeyPolicyResponse Int
Creating a Request
Creates a value of GetKeyPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gkpKeyId
- 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-1234-123456789012gkpPolicyName
- String that contains the name of the policy. Currently, this must be "default". Policy names can be discovered by callingListKeyPolicies
.
data GetKeyPolicy Source #
See: getKeyPolicy
smart constructor.
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-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
.
Destructuring the Response
Creates a value of GetKeyPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gkprsPolicy
- A policy document in JSON format.gkprsResponseStatus
- -- | The response status code.
data GetKeyPolicyResponse Source #
See: getKeyPolicyResponse
smart constructor.
Response Lenses
gkprsPolicy :: Lens' GetKeyPolicyResponse (Maybe Text) Source #
A policy document in JSON format.
gkprsResponseStatus :: Lens' GetKeyPolicyResponse Int Source #
- - | The response status code.