Queries the zones of Server Load Balancer (SLB) instances.
Syntax
{
"Type": "DATASOURCE::SLB::Zones",
"Properties": {
"AddressIPVersion": String,
"AddressType": String,
"RefreshOptions": 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. |
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. |
Example: |
|
SlaveZoneId |
String |
The ID of the secondary zone. |
Example: |
|
SupportResources |
List |
The supported resources. |
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"
]
}
}
}
}