The ALIYUN::ALB::StartZone resource enables a zone for an application load balancer (ALB) instance.
Syntax
{
"Type": "ALIYUN::ALB::StartZone",
"Properties": {
"LoadBalancerId": String,
"ZoneMappings": List
}
}
Properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraints |
|
LoadBalancerId |
String |
Yes |
No |
The ID of the ALB instance. |
None |
|
ZoneMappings |
List |
Yes |
No |
A list of zone mappings. |
You must specify exactly one zone mapping. For more information, see ZoneMappings Properties. |
ZoneMappings syntax
"ZoneMappings": [
{
"ZoneId": String,
"VSwitchId": String
}
]
ZoneMappings properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraints |
|
VSwitchId |
String |
Yes |
No |
The ID of the vSwitch in the zone. |
None |
|
ZoneId |
String |
Yes |
No |
The ID of the zone. |
None |
Return values
Fn::GetAtt
None
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
LoadBalancerId:
Type: String
Description: The ID of the ALB instance.
Required: true
ZoneMappings:
AssociationPropertyMetadata:
Parameters:
ZoneId:
AssociationProperty: ZoneId
Type: String
Description: The ID of the zone.
Required: true
VSwitchId:
AssociationPropertyMetadata:
VpcId: ${VpcId}
ZoneId: ${ZoneId}
AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
Type: String
Description: The ID of the vSwitch in the zone.
Required: true
AssociationProperty: List[Parameters]
Type: Json
Description: A list of zone mappings. Each element contains a VSwitchId and a ZoneId.
Required: true
MinLength: 1
MaxLength: 1
Resources:
LoadBalancerZoneAttachment:
Type: ALIYUN::ALB::StartZone
Properties:
LoadBalancerId:
Ref: LoadBalancerId
ZoneMappings:
Ref: ZoneMappings
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"LoadBalancerId": {
"Type": "String",
"Description": "The ID of the ALB instance.",
"Required": true
},
"ZoneMappings": {
"AssociationPropertyMetadata": {
"Parameters": {
"ZoneId": {
"AssociationProperty": "ZoneId",
"Type": "String",
"Description": "The ID of the zone.",
"Required": true
},
"VSwitchId": {
"AssociationPropertyMetadata": {
"VpcId": "${VpcId}",
"ZoneId": "${ZoneId}"
},
"AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
"Type": "String",
"Description": "The ID of the vSwitch in the zone.",
"Required": true
}
}
},
"AssociationProperty": "List[Parameters]",
"Type": "Json",
"Description": "A list of zone mappings. Each element contains a VSwitchId and a ZoneId.",
"Required": true,
"MinLength": 1,
"MaxLength": 1
}
},
"Resources": {
"LoadBalancerZoneAttachment": {
"Type": "ALIYUN::ALB::StartZone",
"Properties": {
"LoadBalancerId": {
"Ref": "LoadBalancerId"
},
"ZoneMappings": {
"Ref": "ZoneMappings"
}
}
}
}
}