Cria um cluster do AnalyticDB for MySQL Data Lakehouse Edition.
Sintaxe
{
"Type": "ALIYUN::ADBLake::DBCluster",
"Properties": {
"ComputeResource": String,
"DBClusterVersion": String,
"DiskEncryption": Boolean,
"KmsId": String,
"ProductForm": String,
"ReservedNodeCount": Integer,
"ReservedNodeSize": Integer,
"CloneSourceRegionId": String,
"DBClusterNetworkType": String
"PayType": String,
"StorageResource": String,
"VPCId": String,
"VSwitchId": String,
"ZoneId": String,
"BackupSetId": String,
"DBClusterDescription": String,
"EnableDefaultResourcePool": Boolean,
"PeriodType": String,
"Period": String,
"RestoreToTime": String,
"ResourceGroupId": String,
"RestoreType": String,
"SourceDbClusterId": String,
"ProductVersion": String,
"SecondaryVSwitchId": String,
"SecondaryZoneId": String,
"Tags": List
}
}
Propriedades
|
Nome da propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
DBClusterVersion |
String |
Sim |
Não |
Versão do AnalyticDB for MySQL Data Lakehouse Edition. |
Defina o valor como: 5,0. |
|
PayType |
String |
Sim |
Não |
Método de faturamento. |
Valores válidos:
|
|
VPCId |
String |
Sim |
Não |
ID da VPC. |
Nenhuma. |
|
VSwitchId |
String |
Sim |
Não |
ID do vSwitch. |
Nenhuma. |
|
ZoneId |
String |
Sim |
Não |
ID da zona. |
Nota
Chame a API DescribeRegion para consultar o ID da zona de um cluster específico do AnalyticDB for MySQL Data Lakehouse Edition. |
|
BackupSetId |
String |
Não |
Não |
ID do conjunto de backup. |
Nenhuma. |
|
CloneSourceRegionId |
String |
Não |
Não |
ID da região do cluster de origem. |
Nota
Este campo é obrigatório para clonagem entre regiões. |
|
ComputeResource |
String |
Não |
Não |
Recursos de computação reservados. |
Valores válidos: 0 a 4096. O valor deve ser em incrementos de 16. Unidade: unidades de computação do AnalyticDB (ACUs). Uma ACU equivale a 1 núcleo e 4 GB de memória. Nota
Especifique um valor com a unidade para este campo. |
|
DBClusterDescription |
String |
Não |
Não |
Descrição do cluster. |
|
|
DBClusterNetworkType |
String |
Não |
Não |
Tipo de rede do cluster. |
Apenas o tipo VPC (Virtual Private Cloud) é suportado. |
|
DiskEncryption |
Boolean |
Não |
Não |
Indica se a criptografia de disco em nuvem deve ser ativada. |
Nenhuma. |
|
EnableDefaultResourcePool |
Boolean |
Não |
Não |
Indica se todos os recursos de computação reservados devem ser alocados ao grupo de recursos padrão. |
Valores válidos:
|
|
KmsId |
String |
Não |
Não |
ID da chave KMS para criptografar dados do disco em nuvem. |
Nota
Este campo é obrigatório apenas quando a criptografia de disco em nuvem está ativada para o cluster do AnalyticDB for MySQL. |
|
Period |
String |
Não |
Não |
Duração da assinatura do cluster. |
Valores válidos:
|
|
PeriodType |
String |
Não |
Não |
Tipo de assinatura. |
Valores válidos:
|
|
ProductForm |
String |
Não |
Não |
Forma do produto. |
Valores válidos:
|
|
ProductVersion |
String |
Não |
Não |
Versão do produto. |
Valores válidos:
|
|
ResourceGroupId |
String |
Não |
Não |
ID do grupo de recursos. |
Nenhuma. |
|
RestoreToTime |
String |
Não |
Não |
Ponto no tempo para o qual você deseja restaurar os dados do conjunto de backup. |
Nenhuma. |
|
RestoreType |
String |
Não |
Não |
Método usado para restaurar dados. |
Valores válidos:
|
|
ReservedNodeCount |
Integer |
Não |
Não |
Número de nós reservados. |
Nota
Especifique este campo apenas quando ProductForm estiver definido como IntegrationForm. |
|
ReservedNodeSize |
Integer |
Não |
Não |
Especificações dos nós reservados. |
Unidade: ACU. |
|
SecondaryVSwitchId |
String |
Não |
Não |
ID do vSwitch secundário. |
Nenhuma. |
|
SecondaryZoneId |
String |
Não |
Não |
ID da zona secundária. |
Nenhuma. |
|
SourceDbClusterId |
String |
Não |
Não |
ID do cluster de source do AnalyticDB for MySQL Data Lakehouse Edition. |
Nenhuma. |
|
StorageResource |
String |
Não |
Não |
Recursos de armazenamento reservados. |
Valores válidos: 0 a 2064. O valor deve ser em incrementos de 24. Unidade: unidades de computação do AnalyticDB (ACUs). Uma ACU equivale a 1 núcleo e 4 GB de memória. Nota
Especifique um valor com a unidade para este campo. |
|
Tags |
List |
Não |
Sim |
Tags do cluster. |
Para obter mais informações, consulte Propriedades de Tags. |
Sintaxe de Tags
"Tags": [
{
"Value": String,
"Key": String
}
]
Propriedades de Tags
|
Propriedade |
Tipo |
Obrigatório |
Permite atualizações |
Descrição |
Restrição |
|
Key |
String |
Sim |
Não |
Chave da tag. |
É possível especificar de 1 a 20 chaves de tag. |
|
Value |
String |
Não |
Não |
Valor da tag. |
É possível especificar de 1 a 20 valores de tag. |
Valores de retorno
Fn::GetAtt
DBClusterId: ID do cluster do AnalyticDB for MySQL Data Lakehouse Edition.
OrderId: ID do pedido.
ConnectionString: endpoint público para conexão ao cluster.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
StorageResource:
Type: String
Description:
en: |-
The amount of reserved storage resources. Unit: AnalyticDB compute units (ACUs). Valid values: 0ACU to 2064ACU. The value must be in increments of 24 ACUs. Each ACU is equivalent to 1 core and 4 GB memory.
Note This parameter must be specified with a unit.
Required: true
ZoneId:
AssociationProperty: ZoneId
Type: String
Description:
en: |-
The zone ID.
Note You can call the DescribeRegions operation to query the most recent zone list.
Required: true
VPCId:
Type: String
Description:
en: The virtual private cloud (VPC) ID of the cluster.
Required: true
VSwitchId:
AssociationPropertyMetadata:
VpcId: ${VpcId}
ZoneId: ${ZoneId}
AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
Type: String
Description:
en: The vSwitch ID of the cluster.
Required: true
ComputeResource:
Type: String
Description:
en: |-
The amount of reserved computing resources. Unit: ACUs. Valid values: 0ACU to 4096ACU. The value must be in increments of 16 ACUs. Each ACU is equivalent to 1 core and 4 GB memory.
Note This parameter must be specified with a unit.
Required: true
PayType:
Type: String
Description:
en: |-
The billing method of the cluster. Valid values:
Postpaid: pay-as-you-go.
Prepaid: subscription.
AllowedValues:
- PayAsYouGo
- Subscription
Required: true
Default: PayAsYouGo
DBClusterVersion:
Type: String
Description:
en: The version of the cluster. Set the value to 5.0.
Required: true
Resources:
DBCluster:
Type: ALIYUN::ADBLake::DBCluster
Properties:
StorageResource:
Ref: StorageResource
ZoneId:
Ref: ZoneId
VPCId:
Ref: VPCId
VSwitchId:
Ref: VSwitchId
ComputeResource:
Ref: ComputeResource
PayType:
Ref: PayType
DBClusterVersion:
Ref: DBClusterVersion
Outputs:
DBClusterId:
Description: The ID of the AnalyticDB for MySQL Data Lakehouse Edition (V3.0) cluster.
Value:
Fn::GetAtt:
- DBCluster
- DBClusterId
OrderId:
Description: The order ID.
Value:
Fn::GetAtt:
- DBCluster
- OrderId
ConnectionString:
Description: The public endpoint that is used to connect to the cluster.
Value:
Fn::GetAtt:
- DBCluster
- ConnectionString
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"StorageResource": {
"Type": "String",
"Description": {
"en": "The amount of reserved storage resources. Unit: AnalyticDB compute units (ACUs). Valid values: 0ACU to 2064ACU. The value must be in increments of 24 ACUs. Each ACU is equivalent to 1 core and 4 GB memory.\nNote This parameter must be specified with a unit."
},
"Required": true
},
"ZoneId": {
"AssociationProperty": "ZoneId",
"Type": "String",
"Description": {
"en": "The zone ID.\nNote You can call the DescribeRegions operation to query the most recent zone list."
},
"Required": true
},
"VPCId": {
"Type": "String",
"Description": {
"en": "The virtual private cloud (VPC) ID of the cluster."
},
"Required": true
},
"VSwitchId": {
"AssociationPropertyMetadata": {
"VpcId": "${VpcId}",
"ZoneId": "${ZoneId}"
},
"AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
"Type": "String",
"Description": {
"en": "The vSwitch ID of the cluster."
},
"Required": true
},
"ComputeResource": {
"Type": "String",
"Description": {
"en": "The amount of reserved computing resources. Unit: ACUs. Valid values: 0ACU to 4096ACU. The value must be in increments of 16 ACUs. Each ACU is equivalent to 1 core and 4 GB memory.\nNote This parameter must be specified with a unit."
},
"Required": true
},
"PayType": {
"Type": "String",
"Description": {
"en": "The billing method of the cluster. Valid values:\nPostpaid: pay-as-you-go.\nPrepaid: subscription."
},
"AllowedValues": [
"PayAsYouGo",
"Subscription"
],
"Required": true,
"Default": "PayAsYouGo"
},
"DBClusterVersion": {
"Type": "String",
"Description": {
"en": "The version of the cluster. Set the value to 5.0."
},
"Required": true
}
},
"Resources": {
"DBCluster": {
"Type": "ALIYUN::ADBLake::DBCluster",
"Properties": {
"StorageResource": {
"Ref": "StorageResource"
},
"ZoneId": {
"Ref": "ZoneId"
},
"VPCId": {
"Ref": "VPCId"
},
"VSwitchId": {
"Ref": "VSwitchId"
},
"ComputeResource": {
"Ref": "ComputeResource"
},
"PayType": {
"Ref": "PayType"
},
"DBClusterVersion": {
"Ref": "DBClusterVersion"
}
}
}
},
"Outputs": {
"DBClusterId": {
"Description": "The ID of the AnalyticDB for MySQL Data Lakehouse Edition (V3.0) cluster.",
"Value": {
"Fn::GetAtt": [
"DBCluster",
"DBClusterId"
]
}
},
"OrderId": {
"Description": "The order ID.",
"Value": {
"Fn::GetAtt": [
"DBCluster",
"OrderId"
]
}
},
"ConnectionString": {
"Description": "The public endpoint that is used to connect to the cluster.",
"Value": {
"Fn::GetAtt": [
"DBCluster",
"ConnectionString"
]
}
}
}
}