Queries zones that are available for Elastic Compute Service (ECS) resources.
Syntax
{
"Type": "DATASOURCE::ECS::Zones",
"Properties": {
"IoOptimized": String,
"InstanceChargeType": String,
"ResourceType": String,
"DataDiskCategory": String,
"InstanceType": String,
"SystemDiskCategory": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
IoOptimized |
String |
No |
Yes |
Whether the instance is I/O optimized. |
Valid values:
|
|
InstanceChargeType |
String |
No |
Yes |
The billing method of the resource in the zone. |
Valid values:
|
|
ResourceType |
String |
No |
Yes |
The resource type. |
Valid values:
|
|
DataDiskCategory |
String |
No |
Yes |
The category of the data disk. |
Valid values:
|
|
InstanceType |
String |
No |
Yes |
The ECS instance type. |
None. |
|
SystemDiskCategory |
String |
No |
Yes |
The category of the system disk. |
Valid values:
|
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources during stack updates. |
Valid values:
|
Return values (Fn::GetAtt)
-
ZoneIds: The IDs of the zones.
-
Zones: The details of the zones.
|
Property |
Type |
Description |
Constraint |
|
ZoneIds |
List |
The IDs of the zones. |
Example: |
|
Zones |
List |
Details of the zones. |
None. |
|
ZoneId |
String |
The zone ID. |
None. |
|
Status |
String |
The status of the resource. |
Valid values:
|
|
StatusCategory |
String |
The inventory status of the resource. |
Valid values:
|
|
RegionId |
String |
The region ID of the zone. |
None. |
Examples
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceChargeType": {
"Type": "String",
"Description": "The billing method of the resource. For more information, see Billing overview. Valid values:\nPrePaid: subscription\nPostPaid: pay-as-you-go\nDefault value: PostPaid.",
"Default": "PostPaid"
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ECS::Zones",
"Properties": {
"InstanceChargeType": {
"Ref": "InstanceChargeType"
}
}
}
},
"Outputs": {
"ZoneIds": {
"Description": "The list of zone IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ZoneIds"
]
}
},
"Zones": {
"Description": "The list of zones.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Zones"
]
}
}
}
}