The ALIYUN::ALB::ZoneShift resource performs a zone shift on an ALB.
Syntax
{
"Type": "ALIYUN::ALB::ZoneShift",
"Properties": {
"LoadBalancerId": String,
"ZoneMappings": List
}
}
Properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraints |
|
LoadBalancerId |
String |
Yes |
No |
The load balancer ID. |
None |
|
ZoneMappings |
List |
Yes |
No |
A list containing a single zone mapping. |
Length: 1. For more information, see Zone mappings properties. |
Zone mappings syntax
"ZoneMappings": [
{
"ZoneId": String,
"VSwitchId": String
}
]
Zone mappings properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraints |
|
VSwitchId |
String |
Yes |
No |
The vSwitch ID. |
None |
|
ZoneId |
String |
Yes |
No |
The zone ID. |
None |
Return values
Fn::GetAtt
None
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
LoadBalancerId:
Type: String
Description: The load balancer ID.
Required: true
ZoneMappings:
AssociationPropertyMetadata:
Parameters:
ZoneId:
AssociationProperty: ZoneId
Type: String
Description: The zone ID.
Required: true
VSwitchId:
AssociationPropertyMetadata:
VpcId: ${VpcId}
ZoneId: ${ZoneId}
AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
Type: String
Description: The vSwitch ID.
Required: true
AssociationProperty: List[Parameters]
Type: Json
Description: A list containing a single zone mapping. You must specify the VSwitchId and ZoneId.
Required: true
MinLength: 1
MaxLength: 1
Resources:
ZoneShift:
Type: ALIYUN::ALB::ZoneShift
Properties:
LoadBalancerId:
Ref: LoadBalancerId
ZoneMappings:
Ref: ZoneMappings
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"LoadBalancerId": {
"Type": "String",
"Description": "The load balancer ID.",
"Required": true
},
"ZoneMappings": {
"AssociationPropertyMetadata": {
"Parameters": {
"ZoneId": {
"AssociationProperty": "ZoneId",
"Type": "String",
"Description": "The zone ID.",
"Required": true
},
"VSwitchId": {
"AssociationPropertyMetadata": {
"VpcId": "${VpcId}",
"ZoneId": "${ZoneId}"
},
"AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
"Type": "String",
"Description": "The vSwitch ID.",
"Required": true
}
}
},
"AssociationProperty": "List[Parameters]",
"Type": "Json",
"Description": "A list containing a single zone mapping. You must specify the VSwitchId and ZoneId.",
"Required": true,
"MinLength": 1,
"MaxLength": 1
}
},
"Resources": {
"ZoneShift": {
"Type": "ALIYUN::ALB::ZoneShift",
"Properties": {
"LoadBalancerId": {
"Ref": "LoadBalancerId"
},
"ZoneMappings": {
"Ref": "ZoneMappings"
}
}
}
}
}
该文章对您有帮助吗?