ALIYUN::CEN::TransitRouterVpnAttachment
ALIYUN::CEN::TransitRouterVpnAttachment類型用于創(chuàng)建VPN連接。
語法
{
"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
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
VpnId | String | 是 | 否 | IPsec連接ID。 | 無 |
ZoneId | String | 是 | 否 | 可用區(qū)ID。 | 無 |
AutoPublishRouteEnabled | Boolean | 否 | 是 | 是否允許轉(zhuǎn)發(fā)路由器實例自動向IPsec連接發(fā)布路由條目。 | 取值:
|
CenId | String | 否 | 否 | 云企業(yè)網(wǎng)實例ID。 | 無 |
DeletionForce | Boolean | 否 | 是 | 是否強制刪除VPN連接。 | 取值:
|
RouteTableAssociationEnabled | Boolean | 否 | 否 | 是否啟動路由關(guān)聯(lián)轉(zhuǎn)發(fā)關(guān)系。 | 取值:
|
RouteTablePropagationEnabled | Boolean | 否 | 否 | 是否啟用路由學習關(guān)系。 | 取值:
|
Tags | List | 否 | 否 | 標簽信息列表。 | 一次最多支持輸入20個標簽信息。更多信息,請參見Tags屬性。 |
TransitRouterAttachmentDescription | String | 否 | 是 | VPN連接的描述信息。 | 描述長度為2~256個字符,必須以字母或中文開頭,但不能以 |
TransitRouterAttachmentName | String | 否 | 是 | VPN連接的名稱。 | 名稱長度為2~128個字符,以大小寫字母或中文開頭,可包含數(shù)字、下劃線(_)和短劃線(-)。 |
TransitRouterId | String | 否 | 是 | 轉(zhuǎn)發(fā)路由器實例ID。 | 無 |
VpnOwnerId | String | 否 | 否 | IPsec連接所屬的阿里云賬號(主賬號)ID。 | 參數(shù)要求:
|
Tags語法
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Key | String | 是 | 否 | 資源的標簽鍵。 | 一旦傳入該值,則不允許為空字符串。最多支持64個字符,不能以 |
Value | String | 否 | 否 | 資源的標簽值。 | 標簽值可以為空或輸入不超過128個字符的字符串,不能以 |
返回值
Fn::GetAtt
TransitRouterAttachmentId:VPN連接ID。
示例
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
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"
]
}
}
}
}