Membuat alias untuk kunci.
Deskripsi operasi
Each alias can be bound to only one CMK at a time.
The aliases of CMKs in the same region must be unique.
In this topic, an alias named alias/example is created for a CMK named 7906979c-8e06-46a2-be2d-68e3ccbc****.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| KeyId |
string |
Yes |
ID CMK. ID harus unik secara global. |
7906979c-8e06-46a2-be2d-68e3ccbc**** |
| AliasName |
string |
Yes |
Alias CMK. Alias harus memiliki panjang 1 hingga 255 karakter dan harus mengandung awalan |
alias/example |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request, which is used to locate and troubleshoot issues. |
1d2baaf3-d357-46c2-832e-13560c2bd9cd |
Contoh
Respons sukses
JSONformat
{
"RequestId": "1d2baaf3-d357-46c2-832e-13560c2bd9cd"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is not valid. | An invalid value is specified for the parameter. |
| 404 | InvalidAccessKeyId.NotFound | The Access Key ID provided does not exist in our records. | |
| 404 | Forbidden.KeyNotFound | The specified Key is not found. | The error message returned because the specified CMK does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.