O recurso ALIYUN::CEN::TransitRouterCidr cria um bloco CIDR para um transit router.
Sintaxe
{
"Type": "ALIYUN::CEN::TransitRouterCidr",
"Properties": {
"Cidr": String,
"TransitRouterId": String,
"Description": String,
"PublishCidrRoute": Boolean,
"TransitRouterCidrName": String
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualização permitida |
Descrição |
Restrições |
|
Cidr |
String |
Sim |
Sim |
Bloco CIDR do transit router. |
Nenhuma |
|
TransitRouterId |
String |
Sim |
Não |
ID do transit router. |
Nenhuma |
|
Description |
String |
Não |
Sim |
Descrição do bloco CIDR. |
A descrição deve ter de 1 a 256 caracteres e não pode começar com |
|
PublishCidrRoute |
Boolean |
Não |
Sim |
Defina se o sistema adiciona automaticamente uma rota deste bloco CIDR à tabela de rotas do transit router. |
Se definido como |
|
TransitRouterCidrName |
String |
Não |
Sim |
Nome do bloco CIDR. |
O nome deve ter de 1 a 128 caracteres e não pode começar com |
Valores de retorno
Fn::GetAtt
TransitRouterCidrName: Nome do bloco CIDR.
Description: Descrição do bloco CIDR.
Cidr: Bloco CIDR.
TransitRouterCidrId: ID do bloco CIDR.
Family: Tipo do bloco CIDR.
PublishCidrRoute: Indica se o sistema adiciona automaticamente uma rota do bloco CIDR à tabela de rotas do transit router.
TransitRouterId: ID do transit router.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Cidr:
Type: String
Description: The CIDR block of the transit router.
Required: true
TransitRouterId:
Type: String
Description: The ID of the transit router.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::CEN::TransitRouterCidr
Properties:
Cidr:
Ref: Cidr
TransitRouterId:
Ref: TransitRouterId
Outputs:
TransitRouterCidrName:
Description: The name of the CIDR block.
Value:
Fn::GetAtt:
- ExtensionResource
- TransitRouterCidrName
Description:
Description: The description of the CIDR block.
Value:
Fn::GetAtt:
- ExtensionResource
- Description
Cidr:
Description: The CIDR block.
Value:
Fn::GetAtt:
- ExtensionResource
- Cidr
TransitRouterCidrId:
Description: The ID of the CIDR block.
Value:
Fn::GetAtt:
- ExtensionResource
- TransitRouterCidrId
Family:
Description: The type of the CIDR block.
Value:
Fn::GetAtt:
- ExtensionResource
- Family
PublishCidrRoute:
Description: Indicates whether a route for the CIDR block is automatically added to the transit router's route table.
Value:
Fn::GetAtt:
- ExtensionResource
- PublishCidrRoute
TransitRouterId:
Description: The ID of the transit router.
Value:
Fn::GetAtt:
- ExtensionResource
- TransitRouterId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Cidr": {
"Type": "String",
"Description": "The CIDR block of the transit router.",
"Required": true
},
"TransitRouterId": {
"Type": "String",
"Description": "The ID of the transit router.",
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::CEN::TransitRouterCidr",
"Properties": {
"Cidr": {
"Ref": "Cidr"
},
"TransitRouterId": {
"Ref": "TransitRouterId"
}
}
}
},
"Outputs": {
"TransitRouterCidrName": {
"Description": "The name of the CIDR block.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"TransitRouterCidrName"
]
}
},
"Description": {
"Description": "The description of the CIDR block.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"Cidr": {
"Description": "The CIDR block.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Cidr"
]
}
},
"TransitRouterCidrId": {
"Description": "The ID of the CIDR block.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"TransitRouterCidrId"
]
}
},
"Family": {
"Description": "The type of the CIDR block.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Family"
]
}
},
"PublishCidrRoute": {
"Description": "Indicates whether a route for the CIDR block is automatically added to the transit router's route table.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"PublishCidrRoute"
]
}
},
"TransitRouterId": {
"Description": "The ID of the transit router.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"TransitRouterId"
]
}
}
}
}