All Products
Search
Document Center

Key Management Service:UpdateKeyDescription

Last Updated:Jul 29, 2025

Updates the description of a key.

Operation description

This operation replaces the description of a customer master key (CMK) with the description that you specify. The original description of the CMK is specified by the Description parameter when you call the DescribeKey operation. You can call this operation to add, modify, or delete the description of a CMK.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
KeyIdstringYes

The ID of the CMK. The ID must be globally unique.

1234abcd-12ab-34cd-56ef-12345678****
DescriptionstringYes

The description of the CMK. This description includes the purpose of the CMK, such as the types of data that you want to protect and applications that can use the CMK.

key description example

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

3455b9b4-95c1-419d-b310-db6a53b09a39

Examples

Sample success responses

JSONformat

{
  "RequestId": "3455b9b4-95c1-419d-b310-db6a53b09a39"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified parameter is not valid.An invalid value is specified for the parameter.
404InvalidAccessKeyId.NotFoundThe Access Key ID provided does not exist in our records.-
404Forbidden.KeyNotFoundThe specified Key is not found.The error message returned because the specified CMK does not exist.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-10-23API Description Update. The Error code has changedView Change Details