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

Resource Orchestration Service:ALIYUN::ADB::Account

最終更新日:Jan 16, 2025

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

構文

{
  "Type": "ALIYUN::ADB::Account",
  "Properties": {
    "AccountDescription": String,
    "DBClusterId": String,
    "AccountType": String,
    "AccountPassword": String,
    "AccountName": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

AccountName

String

はい

いいえ

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

なし。

AccountPassword

String

はい

はい

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

以下の制限が適用されます。

  • パスワードには、大文字、小文字、数字、および特殊文字を含める必要があります。

    サポートされている特殊文字: ! @ # $ % ^ & * () _ + - =

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

DBClusterId

String

はい

いいえ

AnalyticDB for MySQL クラスタの ID。

なし。

AccountDescription

String

いいえ

いいえ

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

以下の制限が適用されます。

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

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

AccountType

String

いいえ

いいえ

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

有効な値:

  • Normal: 標準アカウント

  • Super: 特権アカウント

戻り値

Fn::GetAtt

  • DBClusterId: AnalyticDB for MySQL クラスタの ID。

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

  • AccountName: データベースアカウントのユーザー名。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DBClusterId:
    Type: String
    Description: クラスタの ID。
  AccountPassword:
    Type: String
    Description: |-
      アカウントのパスワード。
      パスワードには、大文字、小文字、数字、および特殊文字を含める必要があります。
      特殊文字には、! @ # $ % ^ * ()  _ + - = が含まれます。
      パスワードは 8 ~ 32 文字の長さである必要があります。
  AccountName:
    Type: String
    Description: アカウントの名前。
Resources:
  Account:
    Type: ALIYUN::ADB::Account
    Properties:
      DBClusterId:
        Ref: DBClusterId
      AccountPassword:
        Ref: AccountPassword
      AccountName:
        Ref: AccountName
Outputs:
  DBClusterId:
    Description: クラスタの ID。
    Value:
      Fn::GetAtt:
        - Account
        - DBClusterId
  AccountType:
    Description: アカウントのタイプ。
    Value:
      Fn::GetAtt:
        - Account
        - AccountType
  AccountName:
    Description: アカウントの名前。
    Value:
      Fn::GetAtt:
        - Account
        - AccountName

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DBClusterId": {
      "Type": "String",
      "Description": "クラスタの ID。"  // The ID of the cluster.
    },
    "AccountPassword": {
      "Type": "String",
      "Description": "アカウントのパスワード。\nパスワードには、大文字、小文字、数字、および特殊文字を含める必要があります。\n特殊文字には、! @ # $ % ^ * () _ + - = が含まれます。\nパスワードは 8 ~ 32 文字の長さである必要があります。" // The password of the account.\nThe password must contain uppercase letters, lowercase letters, digits, and special\ncharacters.\nSpecial characters include ! @ # $ % ^ * ()  _ + - and =\nThe password must be 8 to 32 characters in length.
    },
    "AccountName": {
      "Type": "String",
      "Description": "アカウントの名前。" // The name of the account.
    }
  },
  "Resources": {
    "Account": {
      "Type": "ALIYUN::ADB::Account",
      "Properties": {
        "DBClusterId": {
          "Ref": "DBClusterId"
        },
        "AccountPassword": {
          "Ref": "AccountPassword"
        },
        "AccountName": {
          "Ref": "AccountName"
        }
      }
    }
  },
  "Outputs": {
    "DBClusterId": {
      "Description": "クラスタの ID。", // The ID of the cluster.
      "Value": {
        "Fn::GetAtt": [
          "Account",
          "DBClusterId"
        ]
      }
    },
    "AccountType": {
      "Description": "アカウントのタイプ。", // The type of the account.
      "Value": {
        "Fn::GetAtt": [
          "Account",
          "AccountType"
        ]
      }
    },
    "AccountName": {
      "Description": "アカウントの名前。", // The name of the account.
      "Value": {
        "Fn::GetAtt": [
          "Account",
          "AccountName"
        ]
      }
    }
  }
}