Skip to main content
client.kms.update_key() renames a key, changes its description, or turns it off or on. The settings that you don’t pass stay as they are.

Parameters

str
required
The ID of the key.
str
The new name of the key, in lowercase letters, numbers, and hyphens.
str
The new description of the key.
bool
True to stop the key from encrypting and decrypting data, or False to allow it again.

Returns

KmsKey
The updated key.