Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names that you can use in a GetKeyPolicy operation. However, the only valid policy name is default.
Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.
Required permissions: kms:ListKeyPolicies (key policy)
Related operations:
-
GetKeyPolicy
-
PutKeyPolicy
post/#X-Amz-Target=TrentService.ListKeyPolicies
Query parameters
Limitstring
Pagination limit
Markerstring
Pagination token
Headers
X-Amz-Target'TrentService.ListKeyPolicies' required
Request body
Response
Success
Example response
{
"PolicyNames": [
"default"
],
"Truncated": false
}