DATASOURCE::RDS::Zones is used to query the zones of an ApsaraDB RDS instance.
Syntax
{
"Type": "DATASOURCE::RDS::Zones",
"Properties": {
"DispenseMode": String,
"Category": String,
"EngineVersion": String,
"ZoneId": String,
"CommodityCode": String,
"Engine": String,
"RefreshOptions": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
DispenseMode | String | No | Yes | Specifies whether to return the zones in which the single-zone deployment method is supported. | Valid values:
Note The single-zone deployment method allows you to deploy an instance that runs RDS Enterprise Edition in a single zone. |
Category | String | No | Yes | The edition of the instance. | Valid values:
|
EngineVersion | String | No | Yes | The version of the database engine. |
|
ZoneId | String | No | Yes | The zone ID. | If the instance resides in more than one zone, the value of this property contains an MAZ part, such as |
CommodityCode | String | No | Yes | The commodity code of the instance. | Valid values:
|
Engine | String | Yes | Yes | The type of the database engine. | 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 IDs of the zones.
Zones: details of the zones.
Property | Type | Description | Constraint |
ZoneIds | List | The IDs of the zones. | None. |
Zones | List | Details of the zones. | None. |
ZoneId | String | The zone ID. | None. |
RegionId | String | The region ID. | None. |
SupportedEngines | List | The database engine versions that are 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