ALIYUN::CEN::TransitRouterGrantAttachment类型用于为转发路由器实例进行授权。
语法
{
"Type": "ALIYUN::CEN::TransitRouterGrantAttachment",
"Properties": {
"CenOwnerId": Integer,
"CenId": String,
"InstanceId": String,
"InstanceType": String,
"OrderType": String
}
}属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
CenOwnerId | Integer | 是 | 否 | 云企业网实例所属的阿里云账号(主账号)ID。 | 无 |
CenId | String | 是 | 否 | 转发路由器实例所属的云企业网实例 ID。 | 无 |
InstanceId | String | 是 | 否 | 网络实例 ID。 | 无 |
InstanceType | String | 是 | 否 | 网络实例的类型。 | 取值:
|
OrderType | String | 否 | 否 | 网络实例的付费方。 | 取值:
|
返回值
Fn::GetAtt
无
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceId:
Type: String
Description:
en: The ID of the network instance.
Required: true
CenOwnerId:
Type: Number
Description:
en: The Alibaba Cloud account ID (main account ID) of the CEN instance owner.
Required: true
CenId:
Type: String
Description:
en: The ID of the Cloud Enterprise Network (CEN) instance.
Required: true
InstanceType:
Type: String
Description:
en: |-
The type of the network instance. Valid values:
- VPC: Virtual Private Cloud instance.
- ExpressConnect: Virtual Border Router (VBR) instance.
- VPN: IPsec connection.
- ECR: ECR instance.
AllowedValues:
- VPC
- ExpressConnect
- VPN
- ECR
Required: true
Resources:
TransitRouterGrantAttachment:
Type: ALIYUN::CEN::TransitRouterGrantAttachment
Properties:
InstanceId:
Ref: InstanceId
CenOwnerId:
Ref: CenOwnerId
CenId:
Ref: CenId
InstanceType:
Ref: InstanceType
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the network instance."
},
"Required": true
},
"CenOwnerId": {
"Type": "Number",
"Description": {
"en": "The Alibaba Cloud account ID (main account ID) of the CEN instance owner."
},
"Required": true
},
"CenId": {
"Type": "String",
"Description": {
"en": "The ID of the Cloud Enterprise Network (CEN) instance."
},
"Required": true
},
"InstanceType": {
"Type": "String",
"Description": {
"en": "The type of the network instance. Valid values:\n- VPC: Virtual Private Cloud instance.\n- ExpressConnect: Virtual Border Router (VBR) instance.\n- VPN: IPsec connection.\n- ECR: ECR instance."
},
"AllowedValues": [
"VPC",
"ExpressConnect",
"VPN",
"ECR"
],
"Required": true
}
},
"Resources": {
"TransitRouterGrantAttachment": {
"Type": "ALIYUN::CEN::TransitRouterGrantAttachment",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
},
"CenOwnerId": {
"Ref": "CenOwnerId"
},
"CenId": {
"Ref": "CenId"
},
"InstanceType": {
"Ref": "InstanceType"
}
}
}
}
}
该文章对您有帮助吗?