All Products
Search
Document Center

Key Management Service:UpdateAlias

Last Updated:Jul 29, 2025

Binds an existing alias to a different customer master key (CMK) ID.

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****
AliasNamestringYes

The alias that you want to bind.

The value must be 1 to 255 characters in length and must include the alias/ prefix.

alias/example

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

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

1d2baaf3-d357-46c2-832e-13560c2bd9cd

Examples

Sample success responses

JSONformat

{
  "RequestId": "1d2baaf3-d357-46c2-832e-13560c2bd9cd"
}

Error codes

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