ALIYUN::GraphDatabase::Account类型用于创建账号。

语法

{
  "Type": "ALIYUN::GraphDatabase::Account",
  "Properties": {
    "AccountDescription": String,
    "DbInstanceId": String,
    "AccountPassword": String,
    "AccountName": String
  }
}

属性

属性名称类型必须允许更新描述约束
AccountDescriptionString账号描述。
DbInstanceIdString数据库实例ID。
AccountPasswordString账号密码。
AccountNameString账号名称。

返回值

Fn::GetAtt

  • AccountDescription:账号描述。
  • AccountType:账号类型。
  • AccountName:账号名称。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      DbInstanceId:
        Type: String
        Description: Instance Id.
      AccountPassword:
        Type: String
        Description: Account password.
    Resources:
      ExtensionResource:
        Type: ALIYUN::GraphDatabase::Account
        Properties:
          DbInstanceId:
            Ref: DbInstanceId
          AccountPassword:
            Ref: AccountPassword
          AccountName: Demo
    Outputs:
      AccountDescription:
        Description: Account description.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - AccountDescription
      AccountType:
        Description: Account Type.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - AccountType
      AccountName:
        Description: Account name.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - AccountName
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "DbInstanceId": {
          "Type": "String",
          "Description": "Instance Id."
        },
        "AccountPassword": {
          "Type": "String",
          "Description": "Account password."
        }
      },
      "Resources": {
        "ExtensionResource": {
          "Type": "ALIYUN::GraphDatabase::Account",
          "Properties": {
            "DbInstanceId": {
              "Ref": "DbInstanceId"
            },
            "AccountPassword": {
              "Ref": "AccountPassword"
            },
            "AccountName": "Demo"
          }
        }
      },
      "Outputs": {
        "AccountDescription": {
          "Description": "Account description.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "AccountDescription"
            ]
          }
        },
        "AccountType": {
          "Description": "Account Type.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "AccountType"
            ]
          }
        },
        "AccountName": {
          "Description": "Account name.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "AccountName"
            ]
          }
        }
      }
    }