Cria uma política de roteamento para o firewall de VPC de um transit router.
Sintaxe
{
"Type": "ALIYUN::CLOUDFW::TrFirewallRoutePolicy",
"Properties": {
"FirewallId": String,
"PolicyType": String,
"PolicyDescription": String,
"PolicyName": String,
"DestCandidateList": List,
"SrcCandidateList": List
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
FirewallId |
String |
Sim |
Não |
ID do firewall de VPC. |
Nenhuma. |
|
PolicyType |
String |
Sim |
Não |
Tipo de cenário de redirecionamento de tráfego do firewall de VPC. |
Valores válidos:
|
|
PolicyDescription |
String |
Sim |
Não |
Descrição da instância de redirecionamento de tráfego. |
Nenhuma. |
|
PolicyName |
String |
Sim |
Não |
Nome da instância de redirecionamento de tráfego. |
Nenhuma. |
|
DestCandidateList |
List |
Não |
Sim |
Instâncias secundárias de redirecionamento de tráfego. |
Para obter mais informações, consulte Propriedades de DestCandidateList. |
|
SrcCandidateList |
List |
Não |
Sim |
Instâncias primárias de redirecionamento de tráfego. |
Para obter mais informações, consulte Propriedades de SrcCandidateList. |
Sintaxe de SrcCandidateList
"SrcCandidateList": [
{
"CandidateType": String,
"CandidateId": String
}
]
Propriedades de SrcCandidateList
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
CandidateId |
String |
Sim |
Não |
ID da instância de redirecionamento de tráfego. |
Nenhuma. |
|
CandidateType |
String |
Não |
Não |
Tipo da instância de redirecionamento de tráfego. |
Nenhuma. |
Sintaxe de DestCandidateList
"DestCandidateList": [
{
"CandidateType": String,
"CandidateId": String
}
]
Propriedades de DestCandidateList
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
CandidateId |
String |
Sim |
Não |
ID da instância de redirecionamento de tráfego. |
Nenhuma. |
|
CandidateType |
String |
Não |
Não |
Tipo da instância de redirecionamento de tráfego. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
FirewallId: ID do firewall de VPC.
TrFirewallRoutePolicyId: ID da política de roteamento.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
PolicyType:
Type: String
Description:
en: |-
The type of the traffic redirection scenario of the VPC firewall. Valid values:
fullmesh: interconnected instances
one_to_one: instance to instance
end_to_end: instance to instances
AllowedValues:
- fullmesh
- one_to_one
- end_to_end
Required: true
Default: end_to_end
PolicyName:
Type: String
Description:
en: The name of the traffic redirection instance.
Required: true
FirewallId:
Type: String
Description:
en: The instance ID of the VPC firewall.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::CLOUDFW::TrFirewallRoutePolicy
Properties:
PolicyType:
Ref: PolicyType
PolicyName:
Ref: PolicyName
FirewallId:
Ref: FirewallId
PolicyDescription: demo
SrcCandidateList:
- CandidateType: VPC
CandidateId: vpc-wXXXXX
DestCandidateList:
- CandidateType: VPC
CandidateId: vpc-wXXXXX
Outputs:
FirewallId:
Description: The instance ID of the VPC firewall.
Value:
Fn::GetAtt:
- ExtensionResource
- FirewallId
TrFirewallRoutePolicyId:
Description: The ID of the routing policy.
Value:
Fn::GetAtt:
- ExtensionResource
- TrFirewallRoutePolicyId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"PolicyType": {
"Type": "String",
"Description": {
"en": "The type of the traffic redirection scenario of the VPC firewall. Valid values:\nfullmesh: interconnected instances\none_to_one: instance to instance\nend_to_end: instance to instances"
},
"AllowedValues": [
"fullmesh",
"one_to_one",
"end_to_end"
],
"Required": true,
"Default": "end_to_end"
},
"PolicyName": {
"Type": "String",
"Description": {
"en": "The name of the traffic redirection instance."
},
"Required": true
},
"FirewallId": {
"Type": "String",
"Description": {
"en": "The instance ID of the VPC firewall."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::CLOUDFW::TrFirewallRoutePolicy",
"Properties": {
"PolicyType": {
"Ref": "PolicyType"
},
"PolicyName": {
"Ref": "PolicyName"
},
"FirewallId": {
"Ref": "FirewallId"
},
"PolicyDescription": "demo",
"SrcCandidateList": [
{
"CandidateType": "VPC",
"CandidateId": "vpc-wXXXXX"
}
],
"DestCandidateList": [
{
"CandidateType": "VPC",
"CandidateId": "vpc-wXXXXX"
}
]
}
}
},
"Outputs": {
"FirewallId": {
"Description": "The instance ID of the VPC firewall.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"FirewallId"
]
}
},
"TrFirewallRoutePolicyId": {
"Description": "The ID of the routing policy.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"TrFirewallRoutePolicyId"
]
}
}
}
}