ALIYUN::CEN::TransitRouterVpcAttachment
ALIYUN::CEN::TransitRouterVpcAttachment類型用于在企業(yè)版轉(zhuǎn)發(fā)路由器下創(chuàng)建專有網(wǎng)絡(luò)VPC(Virtual Private Cloud)連接。
語法
{
"Type": "ALIYUN::CEN::TransitRouterVpcAttachment",
"Properties": {
"VpcId": String,
"ChargeType": String,
"CenId": String,
"TransitRouterAttachmentName": String,
"ZoneMappings": List,
"VpcOwnerId": Integer,
"TransitRouterAttachmentDescription": String,
"TransitRouterId": String,
"AutoCreateVpcRoute": Boolean,
"DeletionForce": Boolean,
"RouteTablePropagationEnabled": Boolean,
"RouteTableAssociationEnabled": Boolean
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
VpcId | String | 是 | 否 | VPC實例ID。 | 無 |
ZoneMappings | List | 是 | 否 | 企業(yè)版轉(zhuǎn)發(fā)路由器的主可用區(qū)和備可用區(qū),您需要分別在企業(yè)版轉(zhuǎn)發(fā)路由器的主備可用區(qū)中選擇一個交換機實例。 | 更多信息,請參見ZoneMappings屬性。 |
AutoCreateVpcRoute | Boolean | 否 | 否 | 是否自動創(chuàng)建VPC路由條目。 | 取值:
|
CenId | String | 否 | 否 | 云企業(yè)網(wǎng)實例ID。 | 無 |
ChargeType | String | 否 | 否 | 付費方式。 | 默認(rèn)值:POSTPAY,表示按量付費。 |
DeletionForce | Boolean | 否 | 否 | 是否強制刪除VPC連接。 | 取值:
|
RouteTableAssociationEnabled | Boolean | 否 | 否 | 是否啟動路由關(guān)聯(lián)轉(zhuǎn)發(fā)關(guān)系。 | 取值:
|
RouteTablePropagationEnabled | Boolean | 否 | 否 | 是否啟用路由學(xué)習(xí)關(guān)系。 | 取值:
|
TransitRouterAttachmentDescription | String | 否 | 是 | VPC連接的描述信息。 | 長度為2~256個字符,必須以英文字母或漢字開頭,但不能以 |
TransitRouterAttachmentName | String | 否 | 是 | VPC連接的名稱。 | 長度為2~128個字符,以英文字母或漢字開頭,可包含英文字母、漢字、數(shù)字、下劃線(_)或短劃線(-)。 |
TransitRouterId | String | 否 | 否 | 企業(yè)版轉(zhuǎn)發(fā)路由器實例ID。 | 無 |
VpcOwnerId | Integer | 否 | 否 | VPC實例所屬賬號ID。 | 默認(rèn)值為當(dāng)前登錄賬號ID。 |
ZoneMappings語法
"ZoneMappings": [
{
"ZoneId": String,
"VSwitchId": String
}
]
ZoneMappings屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
VSwitchId | String | 是 | 否 | 企業(yè)版轉(zhuǎn)發(fā)路由器的主可用區(qū)或備可用區(qū)中的交換機實例ID。 | 無 |
ZoneId | String | 是 | 否 | 企業(yè)版轉(zhuǎn)發(fā)路由器的主可用區(qū)或備可用區(qū)ID。 | 您可以調(diào)用DescribeZones接口查詢可用區(qū)ID。 |
返回值
Fn::GetAtt
TransitRouterAttachmentId:VPC連接ID。
VpcId:VPC實例ID。
CenId:云企業(yè)網(wǎng)實例ID。
TransitRouterAttachmentName:VPC連接的名稱。
ResourceType:資源類型。
ClientToken:客戶端Token,用于保證請求的冪等性。
VpcOwnerId:VPC實例所屬賬號ID。默認(rèn)值為當(dāng)前登錄賬號ID。
TransitRouterAttachmentDescription:VPC連接的描述信息。
TransitRouterId:企業(yè)版轉(zhuǎn)發(fā)路由器實例ID。
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
CenId:
Description: CenId
Type: String
ChargeType:
Description: ''
Type: String
TransitRouterAttachmentDescription:
Description: TransitRouterAttachmentDescription
Type: String
TransitRouterAttachmentName:
Description: TransitRouterAttachmentName
Type: String
TransitRouterId:
Description: TransitRouterId
Type: String
VpcId:
Description: VpcId
Type: String
VpcOwnerId:
Description: VpcOwnerId
Type: Number
ZoneMappings:
Description: ZoneMappingss
MaxLength: 3
Type: Json
Resources:
CENTransitRouterVpcAttachment:
Properties:
CenId:
Ref: CenId
ChargeType:
Ref: ChargeType
TransitRouterAttachmentDescription:
Ref: TransitRouterAttachmentDescription
TransitRouterAttachmentName:
Ref: TransitRouterAttachmentName
TransitRouterId:
Ref: TransitRouterId
VpcId:
Ref: VpcId
VpcOwnerId:
Ref: VpcOwnerId
ZoneMappings:
Ref: ZoneMappings
Type: ALIYUN::CEN::TransitRouterVpcAttachment
Outputs:
CenId:
Description: CenId
Value:
Fn::GetAtt:
- CENTransitRouterVpcAttachment
- CenId
ClientToken:
Description: ClientToken
Value:
Fn::GetAtt:
- CENTransitRouterVpcAttachment
- ClientToken
ResourceType:
Description: ResourceType
Value:
Fn::GetAtt:
- CENTransitRouterVpcAttachment
- ResourceType
TransitRouterAttachmentDescription:
Description: TransitRouterAttachmentDescription
Value:
Fn::GetAtt:
- CENTransitRouterVpcAttachment
- TransitRouterAttachmentDescription
TransitRouterAttachmentId:
Description: The first ID of the resource
Value:
Fn::GetAtt:
- CENTransitRouterVpcAttachment
- TransitRouterAttachmentId
TransitRouterAttachmentName:
Description: TransitRouterAttachmentName
Value:
Fn::GetAtt:
- CENTransitRouterVpcAttachment
- TransitRouterAttachmentName
TransitRouterId:
Description: TransitRouterId
Value:
Fn::GetAtt:
- CENTransitRouterVpcAttachment
- TransitRouterId
VpcId:
Description: VpcId
Value:
Fn::GetAtt:
- CENTransitRouterVpcAttachment
- VpcId
VpcOwnerId:
Description: VpcOwnerId
Value:
Fn::GetAtt:
- CENTransitRouterVpcAttachment
- VpcOwnerId
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VpcId": {
"Type": "String",
"Description": "VpcId"
},
"ChargeType": {
"Type": "String",
"Description": ""
},
"CenId": {
"Type": "String",
"Description": "CenId"
},
"TransitRouterAttachmentName": {
"Type": "String",
"Description": "TransitRouterAttachmentName"
},
"ZoneMappings": {
"Type": "Json",
"Description": "ZoneMappingss",
"MaxLength": 3
},
"VpcOwnerId": {
"Type": "Number",
"Description": "VpcOwnerId"
},
"TransitRouterAttachmentDescription": {
"Type": "String",
"Description": "TransitRouterAttachmentDescription"
},
"TransitRouterId": {
"Type": "String",
"Description": "TransitRouterId"
}
},
"Resources": {
"CENTransitRouterVpcAttachment": {
"Type": "ALIYUN::CEN::TransitRouterVpcAttachment",
"Properties": {
"VpcId": {
"Ref": "VpcId"
},
"ChargeType": {
"Ref": "ChargeType"
},
"CenId": {
"Ref": "CenId"
},
"TransitRouterAttachmentName": {
"Ref": "TransitRouterAttachmentName"
},
"ZoneMappings": {
"Ref": "ZoneMappings"
},
"VpcOwnerId": {
"Ref": "VpcOwnerId"
},
"TransitRouterAttachmentDescription": {
"Ref": "TransitRouterAttachmentDescription"
},
"TransitRouterId": {
"Ref": "TransitRouterId"
}
}
}
},
"Outputs": {
"TransitRouterAttachmentId": {
"Description": "The first ID of the resource",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterVpcAttachment",
"TransitRouterAttachmentId"
]
}
},
"VpcId": {
"Description": "VpcId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterVpcAttachment",
"VpcId"
]
}
},
"CenId": {
"Description": "CenId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterVpcAttachment",
"CenId"
]
}
},
"TransitRouterAttachmentName": {
"Description": "TransitRouterAttachmentName",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterVpcAttachment",
"TransitRouterAttachmentName"
]
}
},
"ResourceType": {
"Description": "ResourceType",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterVpcAttachment",
"ResourceType"
]
}
},
"ClientToken": {
"Description": "ClientToken",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterVpcAttachment",
"ClientToken"
]
}
},
"VpcOwnerId": {
"Description": "VpcOwnerId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterVpcAttachment",
"VpcOwnerId"
]
}
},
"TransitRouterAttachmentDescription": {
"Description": "TransitRouterAttachmentDescription",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterVpcAttachment",
"TransitRouterAttachmentDescription"
]
}
},
"TransitRouterId": {
"Description": "TransitRouterId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterVpcAttachment",
"TransitRouterId"
]
}
}
}
}