Queries the zones that are available for ApsaraDB RDS instances.
Syntax
{
"Type": "DATASOURCE::RDS::Zones",
"Properties": {
"DispenseMode": String,
"Category": String,
"EngineVersion": String,
"ZoneId": String,
"CommodityCode": String,
"Engine": String,
"RefreshOptions": String
}
}
Properties
|
Property Name |
Type |
Required |
Update Allowed |
Description |
Constraints |
|
DispenseMode |
String |
No |
Yes |
Whether to return only zones that support single-zone deployment. |
Valid values:
Note
The single-zone deployment feature lets you install a three-node Enterprise Edition instance in a single zone. |
|
Category |
String |
No |
Yes |
The instance edition. |
Valid values:
|
|
EngineVersion |
String |
No |
Yes |
The database version. |
Valid values:
|
|
ZoneId |
String |
No |
Yes |
The zone ID. |
Multi-zone IDs use a different format from single-zone IDs and include MAZ. Examples: |
|
CommodityCode |
String |
No |
Yes |
The commodity code of the instance. |
Valid values:
|
|
Engine |
String |
Yes |
Yes |
The database type. |
Valid values:
|
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Return values (Fn::GetAtt)
-
ZoneIds: The list of RDS zone IDs.
-
Zones: The list of RDS zone resources.
|
Property |
Type |
Description |
Constraints |
|
ZoneIds |
List |
The list of RDS zone IDs. |
None |
|
Zones |
List |
The list of RDS zone resources. |
None |
|
ZoneId |
String |
The zone ID. |
None |
|
RegionId |
String |
The region ID. |
None |
|
SupportedEngines |
List |
The database engine versions available for purchase. |
Example:
|
Examples
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Engine": {
"Type": "String",
"Description": "The database engine that is run by the instance.",
"AllowedValues": [
"MySQL",
"SQLServer",
"PostgreSQL",
"MariaDB"
]
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::RDS::Zones",
"Properties": {
"Engine": {
"Ref": "Engine"
}
}
}
},
"Outputs": {
"ZoneIds": {
"Description": "The list of zone IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ZoneIds"
]
}
},
"Zones": {
"Description": "The list of The Zones.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Zones"
]
}
}
}
}ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Engine:
Type: String
Description: The database engine that is run by the instance.
AllowedValues:
- MySQL
- SQLServer
- PostgreSQL
- MariaDB
Resources:
ExtensionDataSource:
Type: DATASOURCE::RDS::Zones
Properties:
Engine:
Ref: Engine
Outputs:
ZoneIds:
Description: The list of zone IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ZoneIds
Zones:
Description: The list of The Zones.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Zones