The current and new CMK must be the same type (both symmetric or both
asymmetric), and they must have the same key usage (ENCRYPT_DECRYPT
or
SIGN_VERIFY
). This restriction prevents errors in code that uses
aliases. If you must assign an alias to a different type of CMK, use
DeleteAlias to delete the old alias and CreateAlias to create a new
alias.
You cannot use UpdateAlias
to change an alias name. To change an alias
name, use DeleteAlias to delete the old alias and CreateAlias to create
a new alias.
Because an alias is not a property of a CMK, you can create, update, and
delete the aliases of a CMK without affecting the CMK. Also, aliases do
not appear in the response from the DescribeKey operation. To get the
aliases of all CMKs in the account, use the ListAliases operation.
The CMK that you use for this operation must be in a compatible key
state. For details, see How Key State Affects Use of a Customer Master Key
in the AWS Key Management Service Developer Guide.