DATASOURCE::SLB::Zones is used to query the zones in which Server Load Balancer (SLB) instances are deployed.
Syntax
{
"Type": "DATASOURCE::SLB::Zones",
"Properties": {
"AddressIPVersion": String,
"AddressType": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
AddressIPVersion | String | No | Yes | The type of the IP address. | Valid values:
|
AddressType | String | No | Yes | The network type of a specific instance. | 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 ID of the zone. | Example: |
SlaveZoneId | String | The ID of the secondary zone. | Example: |
SupportResources | List | The supported resource properties. | Example: |
Examples
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AddressIPVersion": {
"Type": "String",
"Description": "The type of IP address.\nValid values: ipv4 and ipv6.",
"Default": "ipv4"
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::SLB::Zones",
"Properties": {
"AddressIPVersion": {
"Ref": "AddressIPVersion"
}
}
}
},
"Outputs": {
"ZoneIds": {
"Description": "The list of The primary zone Ids.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ZoneIds"
]
}
},
"Zones": {
"Description": "The list of The Zones.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Zones"
]
}
}
}
}