O recurso ALIYUN::ALB::StartZone ativa uma zona de disponibilidade para uma instância de Application Load Balancer (ALB).
Sintaxe
{
"Type": "ALIYUN::ALB::StartZone",
"Properties": {
"LoadBalancerId": String,
"ZoneMappings": List
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualização permitida |
Descrição |
Restrições |
|
LoadBalancerId |
String |
Sim |
Não |
ID da instância ALB. |
Nenhuma |
|
ZoneMappings |
List |
Sim |
Não |
Lista de mapeamentos de zona. |
Especifique exatamente um mapeamento de zona. Para obter mais informações, consulte Propriedades de ZoneMappings. |
Sintaxe de ZoneMappings
"ZoneMappings": [
{
"ZoneId": String,
"VSwitchId": String
}
]
Propriedades de ZoneMappings
|
Parâmetro |
Tipo |
Obrigatório |
Atualização permitida |
Descrição |
Restrições |
|
VSwitchId |
String |
Sim |
Não |
ID do vSwitch na zona. |
Nenhuma |
|
ZoneId |
String |
Sim |
Não |
ID da zona. |
Nenhuma |
Valores de retorno
Fn::GetAtt
Nenhum
Exemplos
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"
}
}
}
}
}