All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::KMS::Alias

Last Updated:Jun 04, 2026

Membuat alias untuk kunci master pelanggan (CMK) di Key Management Service (KMS).

Sintaks

{
  "Type": "ALIYUN::KMS::Alias",
  "Properties": {
    "KeyId": String,
    "AliasName": String
  }
}

Properti

Nama Properti Type Wajib Pembaruan Diizinkan Deskripsi Batasan
KeyId String Ya Tidak ID global unik dari CMK. Tidak ada.
AliasName String Ya Tidak Alias untuk CMK. Gunakan alias ini untuk memanggil Encrypt, GenerateDataKey, dan DescribeKey. Harus diawali dengan awalan alias/. Bagian setelah awalan harus terdiri dari 1 hingga 255 karakter.

Nilai kembalian

Fn::GetAtt

Contoh

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      Alias:
        Type: ALIYUN::KMS::Alias
        Properties:
          KeyId:
            Ref: KeyId
          AliasName: alias/test_key
    Parameters:
      KeyId:
        Type: String
        Description: Identifier global unik dari CMK.
    Outputs: {}
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "Alias": {
          "Type": "ALIYUN::KMS::Alias",
          "Properties": {
            "KeyId": {
              "Ref": "KeyId"
            },
            "AliasName": "alias/test_key"
          }
        }
      },
      "Parameters": {
        "KeyId": {
          "Type": "String",
          "Description": "Identifier global unik dari CMK."
        }
      },
      "Outputs": {}
    }