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

Resource Orchestration Service:ALIYUN::ADBLake::Account

最終更新日:Mar 17, 2025

ALIYUN::ADBLake::Account は、AnalyticDB for MySQL Data Lakehouse Edition クラスタのデータベースアカウントを作成するために使用されます。

構文

{
  "Type": "ALIYUN::ADBLake::Account",
  "Properties": {
    "AccountType": String,
    "AccountName": String,
    "AccountPassword": String,
    "DBClusterId": String,
    "Engine": String,
    "AccountDescription": String,
    "RamUser": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

AccountType

String

はい

いいえ

データベースアカウントのタイプ。

有効な値:

  • Normal: 標準アカウント。

  • Super: 特権アカウント。

AccountName

String

はい

いいえ

データベースアカウントの名前。

名前は次の要件を満たしている必要があります。

  • 名前は小文字で始まり、小文字または数字で終わる必要があります。

  • 小文字、数字、およびアンダースコア(_)を含めることができます。

  • 長さは 2 ~ 16 文字である必要があります。

  • root、admin、opsadmin などの予約済みのユーザー名を含めることはできません。

AccountPassword

String

はい

はい

データベースアカウントのパスワード。

  • パスワードには、大文字、小文字、数字、特殊文字のうち少なくとも 3 つの文字タイプが含まれている必要があります。

  • 特殊文字には、! @ # $ % ^ & * ( ) _ + - = が含まれます。

  • パスワードの長さは 8 ~ 32 文字である必要があります。

DBClusterId

String

はい

いいえ

Enterprise Edition、Basic Edition、または Data Lakehouse Edition クラスタの ID。

なし。

Engine

String

はい

いいえ

データベースエンジン。

有効な値:

  • AnalyticDB (デフォルト): AnalyticDB for MySQL エンジン。

  • Clickhouse: ワイドテーブルエンジン。

AccountDescription

String

いいえ

はい

データベースアカウントの説明。

  • 説明は http:// または https:// で始めることはできません。

  • 最大 256 文字まで入力できます。

RamUser

String

いいえ

はい

Resource Access Management (RAM) ユーザーの ID。

なし。

戻り値

Fn::GetAtt

AccountName: データベースアカウントの名前。

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DBClusterId:
    Type: String
    Description:
      en: The ID of the ADB Lake cluster.
    Required: true
  AccountType:
    Type: String
    Description:
      en: 'The type of the account.Valid values: Normal: normal account. Super: super account.'
    AllowedValues:
      - Normal
      - Super
    Required: true
  Engine:
    Type: String
    Description:
      en: 'The engine of the account.Valid values: AnalyticDB / Clickhouse.'
    AllowedValues:
      - Clickhouse
      - AnalyticDB
    Required: true
    Default: AnalyticDB
  AccountName:
    Type: String
    Description:
      en: The name of the account.The database account name must meet the following requirements:Start with a lowercase letter and end with a lowercase letter or number.Consists of lowercase letters, numbers, or underscores (_).The length is 2 to 16 characters.Reserved user names such as root, admin, and opsadmin cannot be used.
    Required: true
    AllowedPattern: ^[a-z][a-z0-9_]{0,14}[a-z0-9]$
    MinLength: 2
    MaxLength: 16
  AccountPassword:
    Type: String
    Description:
      en: 'The password of the account.The password must meet the following requirements:Database account password.It consists of any three of uppercase letters, lowercase letters, numbers, and special characters.Special symbols include the following: !@#$%^&*()_+-=The password length is 8 to 32 characters.'
    Required: true
    MinLength: 8
    MaxLength: 32
Resources:
  Account:
    Type: ALIYUN::ADBLake::Account
    Properties:
      DBClusterId:
        Ref: DBClusterId
      AccountType:
        Ref: AccountType
      Engine:
        Ref: Engine
      AccountName:
        Ref: AccountName
      AccountPassword:
        Ref: AccountPassword
Outputs:
  AccountName:
    Description: The name of the account.
    Value:
      Fn::GetAtt:
        - Account
        - AccountName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DBClusterId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the ADB Lake cluster."
      },
      "Required": true
    },
    "AccountType": {
      "Type": "String",
      "Description": {
        "en": "The type of the account.Valid values: Normal: normal account. Super: super account."
      },
      "AllowedValues": [
        "Normal",
        "Super"
      ],
      "Required": true
    },
    "Engine": {
      "Type": "String",
      "Description": {
        "en": "The engine of the account.Valid values: AnalyticDB / Clickhouse."
      },
      "AllowedValues": [
        "Clickhouse",
        "AnalyticDB"
      ],
      "Required": true,
      "Default": "AnalyticDB"
    },
    "AccountName": {
      "Type": "String",
      "Description": {
        "en": "The name of the account.The database account name must meet the following requirements:Start with a lowercase letter and end with a lowercase letter or number.Consists of lowercase letters, numbers, or underscores (_).The length is 2 to 16 characters.Reserved user names such as root, admin, and opsadmin cannot be used."
      },
      "Required": true,
      "AllowedPattern": "^[a-z][a-z0-9_]{0,14}[a-z0-9]$",
      "MinLength": 2,
      "MaxLength": 16
    },
    "AccountPassword": {
      "Type": "String",
      "Description": {
        "en": "The password of the account.The password must meet the following requirements:Database account password.It consists of any three of uppercase letters, lowercase letters, numbers, and special characters.Special symbols include the following: !@#$%^&*()_+-=The password length is 8 to 32 characters."
      },
      "Required": true,
      "MinLength": 8,
      "MaxLength": 32
    }
  },
  "Resources": {
    "Account": {
      "Type": "ALIYUN::ADBLake::Account",
      "Properties": {
        "DBClusterId": {
          "Ref": "DBClusterId"
        },
        "AccountType": {
          "Ref": "AccountType"
        },
        "Engine": {
          "Ref": "Engine"
        },
        "AccountName": {
          "Ref": "AccountName"
        },
        "AccountPassword": {
          "Ref": "AccountPassword"
        }
      }
    }
  },
  "Outputs": {
    "AccountName": {
      "Description": "アカウントの名前。",
      "Value": {
        "Fn::GetAtt": [
          "Account",
          "AccountName"
        ]
      }
    }
  }
}