すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::KMS::Alias

最終更新日:Jan 16, 2025

ALIYUN::KMS::Alias は、カスタママスターキー(CMK)のエイリアスを作成するために使用されます。

構文

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

プロパティ

名前タイプ必須編集可能説明有効性
KeyIdStringはいいいえCMK のグローバル一意識別子。なし
AliasNameStringはいいいえCMK に付けるエイリアス。このエイリアスは、Encrypt、GenerateDataKey、および DescribeKey 操作を呼び出すために使用できます。プレフィックスを除いて、エイリアスは 1 ~ 255 文字の長さでなければなりません。プレフィックス alias/ を含める必要があります。

レスポンスパラメータ

Fn::GetAtt

なし。

  • 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.  // CMK のグローバル一意識別子。
    Outputs: {}
  • 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." // CMK のグローバル一意識別子。
        }
      },
      "Outputs": {}
    }