O recurso ALIYUN::CEN::TransitRouterVpnAttachment cria uma conexão VPN.
Sintaxe
{
"Type": "ALIYUN::CEN::TransitRouterVpnAttachment",
"Properties": {
"AutoPublishRouteEnabled": Boolean,
"RouteTableAssociationEnabled": Boolean,
"VpnOwnerId": String,
"DeletionForce": Boolean,
"ZoneId": String,
"RouteTablePropagationEnabled": Boolean,
"CenId": String,
"TransitRouterAttachmentName": String,
"Tags": List,
"TransitRouterAttachmentDescription": String,
"TransitRouterId": String,
"VpnId": String
}
}
Propriedades
Propriedade | Tipo | Obrigatório | Editável | Descrição | Restrição |
VpnId | String | Sim | Não | ID da conexão IPsec-VPN. | Nenhuma. |
ZoneId | String | Sim | Não | ID da zona. | Nenhuma. |
AutoPublishRouteEnabled | Boolean | Não | Sim | Define se o transit router anuncia rotas automaticamente para a conexão IPsec-VPN. | Valores válidos:
|
CenId | String | Não | Não | ID da instância da Cloud Enterprise Network (CEN). | Nenhuma. |
DeletionForce | Boolean | Não | Sim | Define se a conexão VPN será excluída forçosamente. | Valores válidos:
|
RouteTableAssociationEnabled | Boolean | Não | Não | Define se as correlações de encaminhamento associado de rotas estão ativadas. | Valores válidos:
|
RouteTablePropagationEnabled | Boolean | Não | Não | Define se as correlações de aprendizado de rotas estão ativadas. | Valores válidos:
|
Tags | List | Não | Não | Informações sobre as tags. | É possível adicionar até 20 tags por solicitação. Para mais informações, consulte Propriedades de Tags. |
TransitRouterAttachmentDescription | String | Não | Sim | Descrição da conexão VPN. | A descrição deve ter de 2 a 256 caracteres. Deve começar com uma letra e não pode iniciar com |
TransitRouterAttachmentName | String | Não | Sim | Nome da conexão VPN. | O nome deve ter de 2 a 128 caracteres e pode conter letras, dígitos, sublinhados (_) e hífens (-). Deve começar com uma letra. |
TransitRouterId | String | Não | Sim | ID do transit router. | Nenhuma. |
VpnOwnerId | String | Não | Não | ID da conta Alibaba Cloud à qual a conexão IPsec-VPN pertence. | Esta propriedade segue os requisitos abaixo:
|
Sintaxe de Tags
"Tags": [
{
"Value": String,
"Key": String
}
]
Propriedades de Tags
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
Key |
String |
Sim |
Não |
Chave da tag da conexão VPN. |
A chave da tag não pode ser uma string vazia. Admite até 64 caracteres e não pode conter |
|
Value |
String |
Não |
Não |
Valor da tag da conexão VPN. |
O valor da tag pode ser uma string vazia. Admite até 128 caracteres e não pode conter |
Valores de retorno
Fn::GetAtt
TransitRouterAttachmentId: o ID da conexão VPN.
Exemplos
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ZoneId:
AssociationProperty: ZoneId
Type: String
Description:
en: Availability zone ID in the current region.
VpnOwnerId:
Type: String
Description:
en: Alibaba Cloud account (main account) ID to which the IPsec connection belongs.
CenId:
Type: String
Description:
en: The ID of the CEN instance.
TransitRouterAttachmentName:
Type: String
Description:
en: The name of the VPN connection.
TransitRouterId:
Type: String
Description:
en: Forwarding router instance ID
VpnId:
Type: String
Description:
en: IPsec connection ID
Resources:
TransitRouterVpnAttachment:
Type: ALIYUN::CEN::TransitRouterVpnAttachment
Properties:
VpnOwnerId:
Ref: VpnOwnerId
ZoneId:
Ref: ZoneId
CenId:
Ref: CenId
TransitRouterAttachmentName:
Ref: TransitRouterAttachmentName
TransitRouterId:
Ref: TransitRouterId
VpnId:
Ref: VpnId
Outputs:
TransitRouterAttachmentId:
Description: The ID of the VPN connection.
Value:
Fn::GetAtt:
- TransitRouterVpnAttachment
- TransitRouterAttachmentId
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ZoneId": {
"AssociationProperty": "ZoneId",
"Type": "String",
"Description": {
"en": "Availability zone ID in the current region."
}
},
"VpnOwnerId": {
"Type": "String",
"Description": {
"en": "Alibaba Cloud account (main account) ID to which the IPsec connection belongs."
}
},
"CenId": {
"Type": "String",
"Description": {
"en": "The ID of the CEN instance."
}
},
"TransitRouterAttachmentName": {
"Type": "String",
"Description": {
"en": "The name of the VPN connection."
}
},
"TransitRouterId": {
"Type": "String",
"Description": {
"en": "Forwarding router instance ID"
}
},
"VpnId": {
"Type": "String",
"Description": {
"en": "IPsec connection ID"
}
}
},
"Resources": {
"TransitRouterVpnAttachment": {
"Type": "ALIYUN::CEN::TransitRouterVpnAttachment",
"Properties": {
"VpnOwnerId": {
"Ref": "VpnOwnerId"
},
"ZoneId": {
"Ref": "ZoneId"
},
"CenId": {
"Ref": "CenId"
},
"TransitRouterAttachmentName": {
"Ref": "TransitRouterAttachmentName"
},
"TransitRouterId": {
"Ref": "TransitRouterId"
},
"VpnId": {
"Ref": "VpnId"
}
}
}
},
"Outputs": {
"TransitRouterAttachmentId": {
"Description": "The ID of the VPN connection.",
"Value": {
"Fn::GetAtt": [
"TransitRouterVpnAttachment",
"TransitRouterAttachmentId"
]
}
}
}
}