構文
{
"Type": "ALIYUN::PolarDBX::Account",
"Properties": {
"AccountDescription": String, // アカウントの説明。
"DBInstanceId": String, // PolarDB-X インスタンスの ID。
"AccountPassword": String, // アカウントのパスワード。
"AccountName": String // アカウントの名前。
}
}
プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
AccountDescription | String | いいえ | はい | アカウントの説明。 | なし。 |
DBInstanceId | String | はい | いいえ | PolarDB-X インスタンスの ID。 | なし。 |
AccountPassword | String | はい | はい | アカウントのパスワード。 | なし。 |
AccountName | String | はい | いいえ | アカウントの名前。 | なし。 |
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DBInstanceId:
Type: String
Description: インスタンスの ID。 // The ID of the instance.
AccountPassword:
Type: String
Description: アカウントのパスワード。 // The password of the account.
Resources:
ExtensionResource:
Type: ALIYUN::PolarDBX::Account
Properties:
DBInstanceId:
Ref: DBInstanceId
AccountPassword:
Ref: AccountPassword
AccountName: Demo
Outputs:
AccountDescription:
Description: アカウント記述情報。 // Account description information.
Value:
Fn::GetAtt:
- ExtensionResource
- AccountDescription
DBInstanceId:
Description: インスタンスの ID。 // The ID of the instance.
Value:
Fn::GetAtt:
- ExtensionResource
- DBInstanceId
AccountType:
Description: アカウントタイプ。 0 は通常アカウント、 1 は高権限アカウントを表します。 // Account type. 0 represents an ordinary account, and 1 represents a high-privilege account.
Value:
Fn::GetAtt:
- ExtensionResource
- AccountType
AccountName:
Description: アカウント名。 // Account name.
Value:
Fn::GetAtt:
- ExtensionResource
- AccountName
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DBInstanceId": {
"Type": "String",
"Description": "インスタンスの ID。" // The ID of the instance.
},
"AccountPassword": {
"Type": "String",
"Description": "アカウントのパスワード。" // The password of the account.
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::PolarDBX::Account",
"Properties": {
"DBInstanceId": {
"Ref": "DBInstanceId"
},
"AccountPassword": {
"Ref": "AccountPassword"
},
"AccountName": "Demo"
}
}
},
"Outputs": {
"AccountDescription": {
"Description": "アカウント記述情報。", // Account description information.
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AccountDescription"
]
}
},
"DBInstanceId": {
"Description": "インスタンスの ID。", // The ID of the instance.
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"DBInstanceId"
]
}
},
"AccountType": {
"Description": "アカウントタイプ。 0 は通常アカウント、 1 は高権限アカウントを表します。", // Account type. 0 represents an ordinary account, and 1 represents a high-privilege account.
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AccountType"
]
}
},
"AccountName": {
"Description": "アカウント名。", // Account name.
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AccountName"
]
}
}
}
}