ALIYUN::CEN::CenInstanceAttachment is used to attach network instances to a CEN instance.

Syntax

{
  "Type": "ALIYUN::CEN::CenInstanceAttachment",
  "Properties": {
    "ChildInstanceRegionId": String,
    "ChildInstanceType": String,
    "ChildInstanceId": String,
    "CenId": String,
    "ChildInstanceOwnerId": Integer
  }
}

Properties

Name Type Required Editable Description Validity
ChildInstanceRegionId String Yes No The ID of the region where a network instance resides. None
ChildInstanceType String Yes No The type of the network instance to be attached. Valid values: VPC, VBR, and CCN.
ChildInstanceId String Yes No The ID of the network instance to be attached. None
CenId String Yes No The ID of the CEN instance. None
ChildInstanceOwnerId Integer No No The account ID for the network instance. None

Response parameters

Fn::GetAtt

None

Examples

  • YAMLformat

    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: {}
  • JSONformat

    {
      "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": {}
    }