ALIYUN::DRDS::DrdsDB digunakan untuk membuat instance Distributed Relational Database Service (DRDS).
Sintaks
{
"Type": "ALIYUN::DRDS::DrdsDB",
"Properties": {
"DbInstType": String,
"Type": String,
"DrdsInstanceId": String,
"RdsInstance": List,
"DbInstanceIsCreating": Boolean,
"InstDbName": List,
"DbName": String,
"Encode": String,
"AccountName": String,
"Password": String
}
}Properti
Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Kendala |
DbInstType | String | Tidak | Tidak | Tipe perangkat penyimpanan yang terpasang. | Nilai valid:
|
Type | String | Tidak | Tidak | Mode partisi database. | Nilai valid:
Untuk informasi lebih lanjut, lihat Skalabilitas. |
DrdsInstanceId | String | Ya | Tidak | ID instance DRDS. | Tidak ada |
RdsInstance | List | Tidak | Tidak | ID instance ApsaraDB RDS. | Parameter ini berlaku hanya ketika Type diatur ke HORIZONTAL. Anda dapat menentukan hingga lima instance ApsaraDB RDS. |
DbInstanceIsCreating | Boolean | Tidak | Tidak | Menentukan apakah instance ApsaraDB RDS yang diperlukan sedang dibuat. | Nilai valid:
|
InstDbName | List | Tidak | Tidak | ID instance ApsaraDB RDS dan daftar database ketika Type diatur ke VERTICAL. | Anda dapat menentukan hingga lima instance ApsaraDB RDS. Untuk informasi lebih lanjut, lihat Properti InstDbName. |
DbName | String | Tidak | Tidak | Nama database. | Tidak ada |
Encode | String | Tidak | Tidak | Metode pengkodean yang digunakan oleh database. | Tidak ada |
AccountName | String | Tidak | Tidak | Nama akun yang memiliki izin untuk mengakses semua database ApsaraDB RDS dalam skenario partisi vertikal. | Parameter ini berlaku hanya ketika Type diatur ke VERTICAL. |
Password | String | Tidak | Tidak | Kata sandi yang digunakan untuk masuk ke database. | Tidak ada |
Sintaks InstDbName
"InstDbName": [
{
"ShardDbName": List,
"DbInstanceId": String
}
]Properti InstDbName
Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Kendala |
ShardDbName | List | Ya | Tidak | Daftar database yang harus dipartisi secara vertikal dalam instance ApsaraDB RDS. | Anda dapat menentukan hingga lima database. |
DbInstanceId | String | Ya | Tidak | ID instance ApsaraDB RDS. Parameter ini berlaku hanya ketika Type diatur ke VERTICAL. | Tidak ada |
Parameter respons
Fn::GetAtt
Tidak ada
Contoh
JSON Format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DbInstType": {
"Type": "String",
"Description": "Tipe penyimpanan yang terpasang. Nilai valid:\nRDS atau POLARDB",
"AllowedValues": [
"RDS",
"POLARDB"
]
},
"Type": {
"Type": "String",
"Description": "Metode Sharding database. Untuk informasi lebih lanjut, lihat prinsip skalabilitas. Nilai valid:\nHORIZONTAL: menunjukkan partisi HORIZONTAL, yang biasa dikenal sebagai database\nsharding dan tabel sharding.\nVERTICAL: menunjukkan partisi VERTICAL.",
"AllowedValues": [
"HORIZONTAL",
"VERTICAL"
],
"Default": "HORIZONTAL"
},
"DrdsInstanceId": {
"Type": "String",
"Description": "ID instance DRDS"
},
"RdsInstance": {
"Type": "Json",
"Description": "Properti ini diperlukan hanya untuk partisi vertikal.",
"MinLength": 1,
"MaxLength": 5
},
"DbInstanceIsCreating": {
"Type": "Boolean",
"Description": "Periksa apakah instance RDS sedang dibuat.",
"AllowedValues": [
"True",
"true",
"False",
"false"
]
},
"InstDbName": {
"Type": "Json",
"Description": "",
"MinLength": 1,
"MaxLength": 5
},
"DbName": {
"Type": "String",
"Description": "Nama Database"
},
"Encode": {
"Type": "String",
"Description": "Pengkodean yang digunakan oleh database"
},
"AccountName": {
"Type": "String",
"Description": "Dalam skenario pemisahan vertikal, nama akun dengan hak akses ke database yang sesuai pada semua RDS."
},
"Password": {
"Type": "String",
"Description": "Kata sandi logon instance database."
}
},
"Resources": {
"DrdsDB": {
"Type": "ALIYUN::DRDS::DrdsDB",
"Properties": {
"DbInstType": {
"Ref": "DbInstType"
},
"Type": {
"Ref": "Type"
},
"DrdsInstanceId": {
"Ref": "DrdsInstanceId"
},
"RdsInstance": {
"Ref": "RdsInstance"
},
"DbInstanceIsCreating": {
"Ref": "DbInstanceIsCreating"
},
"InstDbName": {
"Ref": "InstDbName"
},
"DbName": {
"Ref": "DbName"
},
"Encode": {
"Ref": "Encode"
},
"AccountName": {
"Ref": "AccountName"
},
"Password": {
"Ref": "Password"
}
}
}
}
}YAML Format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DbInstType:
Type: String
Description: |-
Tipe penyimpanan yang terpasang. Nilai valid:
RDS atau POLARDB
AllowedValues:
- RDS
- POLARDB
Type:
Type: String
Description: >-
Metode Sharding database. Untuk informasi lebih lanjut, lihat prinsip
skalabilitas.
Nilai valid:
HORIZONTAL: menunjukkan partisi HORIZONTAL, yang biasa dikenal sebagai
database
dan tabel sharding.
VERTICAL: menunjukkan partisi VERTICAL.
AllowedValues:
- HORIZONTAL
- VERTICAL
Default: HORIZONTAL
DrdsInstanceId:
Type: String
Description: ID instance DRDS
RdsInstance:
Type: Json
Description: Properti ini diperlukan hanya untuk partisi vertikal.
MinLength: 1
MaxLength: 5
DbInstanceIsCreating:
Type: Boolean
Description: Periksa apakah instance RDS sedang dibuat.
AllowedValues:
- 'True'
- 'true'
- 'False'
- 'false'
InstDbName:
Type: Json
Description: ''
MinLength: 1
MaxLength: 5
DbName:
Type: String
Description: Nama Database
Encode:
Type: String
Description: Pengkodean yang digunakan oleh database
AccountName:
Type: String
Description: >-
Dalam skenario pemisahan vertikal, nama akun dengan hak akses ke database
yang sesuai pada semua RDS.
Password:
Type: String
Description: Kata sandi logon instance database.
Resources:
DrdsDB:
Type: 'ALIYUN::DRDS::DrdsDB'
Properties:
DbInstType:
Ref: DbInstType
Type:
Ref: Type
DrdsInstanceId:
Ref: DrdsInstanceId
RdsInstance:
Ref: RdsInstance
DbInstanceIsCreating:
Ref: DbInstanceIsCreating
InstDbName:
Ref: InstDbName
DbName:
Ref: DbName
Encode:
Ref: Encode
AccountName:
Ref: AccountName
Password:
Ref: Password