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

Resource Orchestration Service:ALIYUN::POLARDB::AITask

最終更新日:Mar 17, 2025

ALIYUN::POLARDB::AITask は、PolarDB for AI 機能を有効にするために使用されます。

構文

{
  "Type": "ALIYUN::POLARDB::AITask",
  "Properties": {
    "Username": String,
    "NodeType": String,
    "DBClusterId": String,
    "Password": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

Username

String

はい

いいえ

PolarDB for AI 機能を有効にするデータベースのユーザー名。

なし。

NodeType

String

いいえ

いいえ

ノードタイプ。

有効な値:

  • DLNode: AI ノード

  • SearchNode: AI 検索ノード

DBClusterId

String

はい

いいえ

クラスタ ID。

なし。

Password

String

はい

いいえ

PolarDB for AI 機能を有効にするデータベースのパスワード。

なし。

戻り値

Fn::GetAtt

DBClusterId: クラスタ ID。

  • YAML フォーマット

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      DBClusterId:
        Description: DB クラスタの ID。
        Type: String
      NodeType:
        Default: DLNode
        Type: String
        Default: DLNode
      Password:
        Description: PolarDB for AI 機能を有効にするデータベースアカウントのパスワードが必要です。
        Type: String
      Username:
        Description: PolarDB for AI 機能を有効にするデータベースアカウントが必要です。
        Type: String
    Resources:
      AITask:
        Properties:
          DBClusterId:
            Ref: DBClusterId
          NodeType:
            Ref: NodeType
          Password:
            Ref: Password
          Username:
            Ref: Username
        Type: ALIYUN::POLARDB::AITask
    Outputs:
      DBClusterId:
        Description: DB クラスタの ID。
        Value:
          Fn::GetAtt:
          - AITask
          - DBClusterId
                            
  • JSON フォーマット

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Username": {
          "Type": "String",
          "Description": "PolarDB for AI 機能を有効にするデータベースアカウントが必要です。"
        },
        "NodeType": {
          "Type": "String",
          "Description": "ノードのタイプ。有効な値:\nDLNode: AI ノード(デフォルト)。\nSearchNode: 検索 AI ノード。",
          "Default": "DLNode"
        },
        "DBClusterId": {
          "Type": "String",
          "Description": : "DB クラスタの ID。"
        },
        "Password": {
          "Type": "String",
          "Description": "PolarDB for AI 機能を有効にするデータベースアカウントのパスワードが必要です。"
        }
      },
      "Resources": {
        "AITask": {
          "Type": "ALIYUN::POLARDB::AITask",
          "Properties": {
            "Username": {
              "Ref": "Username"
            },
            "NodeType": {
              "Ref": "NodeType"
            },
            "DBClusterId": {
              "Ref": "DBClusterId"
            },
            "Password": {
              "Ref": "Password"
            }
          }
        }
      },
      "Outputs": {
        "DBClusterId": {
          "Description": "DB クラスタの ID。",
          "Value": {
            "Fn::GetAtt": [
              "AITask",
              "DBClusterId"
            ]
          }
        }
      }
    }