Ative o recurso PolarDB for AI para uma conta de banco de dados específica em um cluster PolarDB.
Sintaxe
{
"Type": "ALIYUN::POLARDB::AITask",
"Properties": {
"Username": String,
"NodeType": String,
"DBClusterId": String,
"Password": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatório |
Permite atualizações |
Descrição |
Restrição |
|
Username |
String |
Sim |
Não |
Nome de usuário da conta de banco de dados na qual o recurso PolarDB for AI será ativado. |
Nenhuma. |
|
NodeType |
String |
Não |
Não |
Tipo do nó. |
Valores válidos:
|
|
DBClusterId |
String |
Sim |
Não |
ID do cluster PolarDB. |
Nenhuma. |
|
Password |
String |
Sim |
Não |
Senha da conta de banco de dados na qual o recurso PolarDB for AI será ativado. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
DBClusterId: ID do cluster.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DBClusterId:
Description: The ID of the DB cluster.
Type: String
NodeType:
Default: DLNode
Type: String
Password:
Description: The password of the database account for which to enable the PolarDB for AI feature.
Type: String
Username:
Description: The database account for which to enable the PolarDB for AI feature.
Type: String
Resources:
AITask:
Properties:
DBClusterId:
Ref: DBClusterId
NodeType:
Ref: NodeType
Password:
Ref: Password
Username:
Ref: Username
Type: ALIYUN::POLARDB::AITask
Outputs:
DBClusterId:
Description: The ID of the DB cluster.
Value:
Fn::GetAtt:
- AITask
- DBClusterId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Username": {
"Type": "String",
"Description": "The database account for which to enable the PolarDB for AI feature."
},
"NodeType": {
"Type": "String",
"Description": "The type of the node. Valid values:\nDLNode: An AI node (default).\nSearchNode: A search AI node.",
"Default": "DLNode"
},
"DBClusterId": {
"Type": "String",
"Description": "The ID of the DB cluster."
},
"Password": {
"Type": "String",
"Description": "The password of the database account for which to enable the PolarDB for AI feature."
}
},
"Resources": {
"AITask": {
"Type": "ALIYUN::POLARDB::AITask",
"Properties": {
"Username": {
"Ref": "Username"
},
"NodeType": {
"Ref": "NodeType"
},
"DBClusterId": {
"Ref": "DBClusterId"
},
"Password": {
"Ref": "Password"
}
}
}
},
"Outputs": {
"DBClusterId": {
"Description": "The ID of the DB cluster.",
"Value": {
"Fn::GetAtt": [
"AITask",
"DBClusterId"
]
}
}
}
}