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

Resource Orchestration Service:ALIYUN::KAFKA::SaslUser

最終更新日:Mar 17, 2025

ALIYUN::KAFKA::SaslUser は、簡易認証およびセキュリティ層(SASL)ユーザーを作成するために使用されます。

構文

{
  "Type": "ALIYUN::KAFKA::SaslUser",
  "Properties": {
    "InstanceId": String,
    "Password": String,
    "Username": String,
    "Mechanism": String,
    "Type": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

InstanceId

String

はい

いいえ

インスタンス ID。

なし。

Password

String

はい

いいえ

パスワード。

なし。

Username

String

はい

いいえ

ユーザー名。

なし。

Mechanism

String

いいえ

いいえ

暗号化方式。

有効な値:

  • SCRAM-SHA-512 (デフォルト)

  • SCRAM-SHA-256

説明

このプロパティは、サーバーレス ApsaraMQ for Kafka V3 インスタンスでのみ使用できます。

Type

String

いいえ

いいえ

タイプ。

有効な値:

  • plain:ユーザー名とパスワードを使用してユーザー ID を検証するシンプルなメカニズム。ApsaraMQ for Kafka は、インスタンスを再起動せずに SASL ユーザーを動的に追加できる、改良された PLAIN メカニズムを提供します。

  • SCRAM:ユーザー名とパスワードを使用してユーザー ID を検証するメカニズム。PLAIN メカニズムと比較して、このメカニズムはより優れたセキュリティ保護を提供します。ApsaraMQ for Kafka は SCRAM-SHA-256 を使用します。

  • LDAP:Lightweight Directory Access Protocol (LDAP) メカニズム。この値は、ApsaraMQ for Confluent インスタンスの SASL ユーザーを作成する場合にのみ使用できます。

デフォルト値:plain

戻り値

Fn::GetAtt

  • InstanceId:インスタンス ID。

  • Username:ユーザー名。

  • YAML フォーマット

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Username:
        Type: String
        Description:
          en: The name of the SASL user.
        AllowedPattern: ^[a-zA-Z][a-zA-Z0-9_]{2,63}$
        Required: true
      InstanceId:
        Type: String
        Description:
          en: The instance ID.
        Required: true
        MinLength: 1
        MaxLength: 64
      Password:
        Type: String
        Description:
          en: The password of the SASL user.
        Required: true
    Resources:
      SaslUser:
        Type: ALIYUN::KAFKA::SaslUser
        Properties:
          Username:
            Ref: Username
          InstanceId:
            Ref: InstanceId
          Password:
            Ref: Password
    Outputs:
      InstanceId:
        Description: インスタンス ID。
        Value:
          Fn::GetAtt:
            - SaslUser
            - InstanceId
      Username:
        Description: インスタンスのユーザー名。
        Value:
          Fn::GetAtt:
            - SaslUser
            - Username
    
  • JSON フォーマット

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Username": {
          "Type": "String",
          "Description": {
            "en": "The name of the SASL user."
          },
          "AllowedPattern": "^[a-zA-Z][a-zA-Z0-9_]{2,63}$",
          "Required": true
        },
        "InstanceId": {
          "Type": "String",
          "Description": {
            "en": "The instance ID."
          },
          "Required": true,
          "MinLength": 1,
          "MaxLength": 64
        },
        "Password": {
          "Type": "String",
          "Description": {
            "en": "The password of the SASL user."
          },
          "Required": true
        }
      },
      "Resources": {
        "SaslUser": {
          "Type": "ALIYUN::KAFKA::SaslUser",
          "Properties": {
            "Username": {
              "Ref": "Username"
            },
            "InstanceId": {
              "Ref": "InstanceId"
            },
            "Password": {
              "Ref": "Password"
            }
          }
        }
      },
      "Outputs": {
        "InstanceId": {
          "Description": "インスタンス ID。",
          "Value": {
            "Fn::GetAtt": [
              "SaslUser",
              "InstanceId"
            ]
          }
        },
        "Username": {
          "Description": "インスタンスのユーザー名。",
          "Value": {
            "Fn::GetAtt": [
              "SaslUser",
              "Username"
            ]
          }
        }
      }
    }