ALIYUN::CEN::CenInstanceAttachment类型用于加载网络实例到云企业网实例中。
语法
{
  "Type": "ALIYUN::CEN::CenInstanceAttachment",
  "Properties": {
    "ChildInstanceRegionId": String,
    "ChildInstanceType": String,
    "ChildInstanceId": String,
    "CenId": String,
    "ChildInstanceOwnerId": Integer
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| CenId | String | 是 | 否 | 云企业网实例的ID。 | 无。 | 
| ChildInstanceId | String | 是 | 否 | 指定待加载的网络实例的ID。 | 无。 | 
| ChildInstanceRegionId | String | 是 | 否 | 网络实例所在的地域。 | 无。 | 
| ChildInstanceType | String | 是 | 否 | 网络实例的类型。 | 可用值:VPC、VBR、CCN。 | 
| ChildInstanceOwnerId | Integer | 否 | 否 | 跨账号加载场景下,网络实例所属账号的UID。 | 无。 | 
返回值
Fn::GetAtt
无。
示例
YAML格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
  CenId:
    Type: String
    Description: The ID of the CEN instance.
  ChildInstanceOwnerId:
    Type: Number
    Description: The account ID to which the network belongs.
Resources:
  CenInstanceAttachment:
    Type: ALIYUN::CEN::CenInstanceAttachment
    Properties:
      ChildInstanceRegionId: cn-beijing
      ChildInstanceType: VPC
      ChildInstanceId:
        Ref: VpcId
      CenId:
        Ref: CenId
      ChildInstanceOwnerId:
        Ref: ChildInstanceOwnerId
Outputs: {}JSON格式
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VpcId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
    },
    "CenId": {
      "Type": "String",
      "Description": "The ID of the CEN instance."
    },
    "ChildInstanceOwnerId": {
      "Type": "Number",
      "Description": "The account ID to which the network belongs."
    }
  },
  "Resources": {
    "CenInstanceAttachment": {
      "Type": "ALIYUN::CEN::CenInstanceAttachment",
      "Properties": {
        "ChildInstanceRegionId": "cn-beijing",
        "ChildInstanceType": "VPC",
        "ChildInstanceId": {
          "Ref": "VpcId"
        },
        "CenId": {
          "Ref": "CenId"
        },
        "ChildInstanceOwnerId": {
          "Ref": "ChildInstanceOwnerId"
        }
      }
    }
  },
  "Outputs": {}
}该文章对您有帮助吗?