Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::KMS::Alias

Última atualização: Jun 27, 2026

Cria um alias para uma chave mestra de cliente (CMK) no Key Management Service (KMS).

Sintaxe

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

Propriedades

Nome da propriedade

Tipo

Obrigatória

Atualização permitida

Descrição

Restrições

KeyId

String

Sim

Não

ID globalmente exclusivo da CMK.

Nenhuma.

AliasName

String

Sim

Não

Alias da CMK. Use este alias para chamar as operações Encrypt, GenerateDataKey e DescribeKey.

O valor deve começar com o prefixo alias/. A parte após o prefixo deve ter de 1 a 255 caracteres.

Valores de retorno

Fn::GetAtt

Exemplos

  • Formato YAML

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      Alias:
        Type: ALIYUN::KMS::Alias
        Properties:
          KeyId:
            Ref: KeyId
          AliasName: alias/test_key
    Parameters:
      KeyId:
        Type: String
        Description: Globally unique identifier of the CMK.
    Outputs: {}
  • Formato JSON

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "Alias": {
          "Type": "ALIYUN::KMS::Alias",
          "Properties": {
            "KeyId": {
              "Ref": "KeyId"
            },
            "AliasName": "alias/test_key"
          }
        }
      },
      "Parameters": {
        "KeyId": {
          "Type": "String",
          "Description": "Globally unique identifier of the CMK."
        }
      },
      "Outputs": {}
    }