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. The valid policy names are
default and
AWS_RAM.
For information about the
AWS_RAM key policy, see
Sharing KMS keys with RAM in the
Key Management Service Developer Guide.
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:Eventual consistency: The KMS API follows an eventual consistency model. For more information, see
KMS eventual consistency.
This cmdlet automatically pages all available results to the pipeline - parameters related to iteration are only needed if you want to manually control the paginated output. To disable autopagination, use -NoAutoIteration.
Note: For scripts written against earlier versions of this module this cmdlet can also be invoked with the alias,
Get-KMSKeyPolicies.