Values.GetKeyPolicyResponseSourceGets a key policy attached to the specified KMS key. Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account. Required permissions: kms:GetKeyPolicy (key policy) Related operations: PutKeyPolicy Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
type nonrec t = {policy : PolicyType.t option;A key policy document in JSON format.
*)policyName : PolicyNameType.t option;The name of the key policy. The only valid value is default.
*)}type nonrec error = [ | `DependencyTimeoutException of DependencyTimeoutException.t| `InvalidArnException of InvalidArnException.t| `KMSInternalException of KMSInternalException.t| `KMSInvalidStateException of KMSInvalidStateException.t| `NotFoundException of NotFoundException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `DependencyTimeoutException of DependencyTimeoutException.t
| `InvalidArnException of InvalidArnException.t
| `KMSInternalException of KMSInternalException.t
| `KMSInvalidStateException of KMSInvalidStateException.t
| `NotFoundException of NotFoundException.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `DependencyTimeoutException of DependencyTimeoutException.t
| `InvalidArnException of InvalidArnException.t
| `KMSInternalException of KMSInternalException.t
| `KMSInvalidStateException of KMSInvalidStateException.t
| `NotFoundException of NotFoundException.t
| `Unknown_operation_error of string * string option ]