Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CEN::TransitRouterVpcAttachment

Última atualização: Jun 27, 2026

O recurso ALIYUN::CEN::TransitRouterVpcAttachment cria uma conexão de Virtual Private Cloud (VPC) em um transit router da Enterprise Edition.

Sintaxe

{
  "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,
    "TransitRouterVPCAttachmentOptions": Map,
    "AutoPublishRouteEnabled": Boolean
  }
}

Propriedades

Nome da propriedade

Tipo

Obrigatório

Permite atualizações

Descrição

Restrição

VpcId

String

Sim

Não

ID da VPC.

Nenhuma.

ZoneMappings

List

Sim

Não

Zonas primária e secundária do transit router da Enterprise Edition. Selecione um vSwitch na zona primária e outro na zona secundária.

Para mais informações, consulte Propriedades de ZoneMappings.

AutoCreateVpcRoute

Boolean

Não

Não

Defina se o sistema cria automaticamente uma entrada de rota da VPC.

Valores válidos:

  • true: crie a entrada de rota da VPC automaticamente.

  • false: exige criação manual da entrada de rota da VPC.

AutoPublishRouteEnabled

Boolean

Não

Sim

Indica se o transit router da Enterprise Edition anuncia rotas automaticamente para a instância da VPC.

Valores válidos:

  • false

  • true: sim.

CenId

String

Não

Não

ID da instância da Cloud Enterprise Network (CEN).

Nenhuma.

ChargeType

String

Não

Não

Método de faturamento.

Valor padrão: POSTPAY. Esse valor indica o método de pagamento conforme o uso.

DeletionForce

Boolean

Não

Não

Defina se a conexão da VPC será excluída forçadamente.

Valores válidos:

  • true: exclua forçadamente.

  • false: não exclua forçadamente.

RouteTableAssociationEnabled

Boolean

Não

Não

Controla a ativação das correlações de encaminhamento associado de rotas.

Valores válidos:

  • true: ative o encaminhamento para a rota associada.

  • false: desativa o encaminhamento para a rota associada.

RouteTablePropagationEnabled

Boolean

Não

Não

Habilita ou desabilita as correlações de aprendizado de rotas.

Valores válidos:

  • true: ative o aprendizado de rotas.

  • false: desativa o aprendizado de rotas.

TransitRouterAttachmentDescription

String

Não

Sim

Descrição da conexão da VPC.

A descrição deve ter entre 2 e 256 caracteres. Deve começar com uma letra ou caractere chinês, mas não pode iniciar com http:// ou https://.

TransitRouterAttachmentName

String

Não

Sim

Nome da conexão da VPC.

O valor deve ter entre 2 e 128 caracteres, começar com uma letra ou caractere chinês e conter apenas letras, caracteres chineses, dígitos, sublinhados (_) e hifens (-).

TransitRouterId

String

Não

Não

ID do transit router da Enterprise Edition.

Nenhuma.

TransitRouterVPCAttachmentOptions

Map

Não

Sim

Propriedades de recursos da conexão da VPC.

Configurações da conexão da VPC.

  • ipv6Support: defina se o IPv6 estará ativo. O valor padrão corresponde ao status atual de IPv6 da conexão da VPC.

    • enable: IPv6 ativado.

    • disable: IPv6 desativado.

Exemplo:

{
        "key": "{ \"ipv6Support\": \"disable\" }"
      }

VpcOwnerId

Integer

Não

Não

ID da conta Alibaba Cloud proprietária da VPC.

O valor padrão é o ID da conta conectada no momento.

Sintaxe de ZoneMappings

"ZoneMappings": [
  {
    "ZoneId": String,
    "VSwitchId": String
  }
]

Propriedades de ZoneMappings

Nome da propriedade

Tipo

Obrigatório

Permite atualizações

Descrição

Restrição

VSwitchId

String

Sim

Não

ID do vSwitch na zona primária ou secundária do transit router da Enterprise Edition.

Nenhuma.

ZoneId

String

Sim

Não

ID da zona primária ou secundária do transit router da Enterprise Edition.

Chame a operação DescribeZones para consultar o ID da zona.

Valores de retorno

Fn::GetAtt

  • TransitRouterAttachmentId: ID da conexão da VPC.

  • VpcId: ID da VPC.

  • CenId: ID da instância da CEN.

  • TransitRouterAttachmentName: nome da conexão da VPC.

  • ResourceType: tipo do recurso.

  • VpcOwnerId: ID da conta Alibaba Cloud proprietária da VPC. O valor padrão é o ID da conta conectada no momento.

  • TransitRouterAttachmentDescription: descrição da conexão da VPC.

  • TransitRouterId: ID do transit router da Enterprise Edition.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  CenId:
    Description: The ID of the CEN instance.
    Type: String
  ChargeType:
    Description: The billing method of the VPC connection. Set the value to PostPaid. This indicates that the VPC connection uses the pay-as-you-go billing method.
    Type: String
  TransitRouterAttachmentDescription:
    Description: The description of the VPC connection.
    Type: String
  TransitRouterAttachmentName:
    Description: The name of the VPC connection.
    Type: String
  TransitRouterId:
    Description: The ID of the transit router.
    Type: String
  VpcId:
    Description: The ID of the VPC.
    Type: String
  VpcOwnerId:
    Description: The ID of the Alibaba Cloud account to which the VPC belongs.
    Type: Number
  ZoneMappings:
    Description: The zones and the vSwitches in the zones.
    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: The ID of the CEN instance.
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - CenId
  ClientToken:
    Description: The client token that is used to ensure the idempotence of the request.
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - ClientToken
  ResourceType:
    Description: The type of the resource.
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - ResourceType
  TransitRouterAttachmentDescription:
    Description: The description of the VPC connection.
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - TransitRouterAttachmentDescription
  TransitRouterAttachmentId:
    Description: The ID of the VPC connection.
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - TransitRouterAttachmentId
  TransitRouterAttachmentName:
    Description: The name of the VPC connection.
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - TransitRouterAttachmentName
  TransitRouterId:
    Description: The ID of the transit router.
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - TransitRouterId
  VpcId:
    Description: The ID of the VPC.
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - VpcId
  VpcOwnerId:
    Description: The ID of the Alibaba Cloud account to which the VPC belongs.
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
        - VpcOwnerId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VpcId": {
      "Type": "String",
      "Description": "The ID of the VPC."
    },
    "ChargeType": {
      "Type": "String",
      "Description": "The billing method of the VPC connection. Set the value to PostPaid. This indicates that the VPC connection uses the pay-as-you-go billing method."
    },
    "CenId": {
      "Type": "String",
      "Description": "The ID of the CEN instance."
    },
    "TransitRouterAttachmentName": {
      "Type": "String",
      "Description": "The name of the VPC connection."
    },
    "ZoneMappings": {
      "Type": "Json",
      "Description": "The zones and the vSwitches in the zones.",
      "MaxLength": 3
    },
    "VpcOwnerId": {
      "Type": "Number",
      "Description": "The ID of the Alibaba Cloud account to which the VPC belongs."
    },
    "TransitRouterAttachmentDescription": {
      "Type": "String",
      "Description": "The description of the VPC connection."
    },
    "TransitRouterId": {
      "Type": "String",
      "Description": "The ID of the transit router."
    }
  },
  "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 ID of the VPC connection.",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "TransitRouterAttachmentId"
        ]
      }
    },
    "VpcId": {
      "Description": "The ID of the VPC.",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "VpcId"
        ]
      }
    },
    "CenId": {
      "Description": "The ID of the CEN instance.",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "CenId"
        ]
      }
    },
    "TransitRouterAttachmentName": {
      "Description": "The name of the VPC connection.",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "TransitRouterAttachmentName"
        ]
      }
    },
    "ResourceType": {
      "Description": "The type of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "ResourceType"
        ]
      }
    },
    "ClientToken": {
      "Description": "The client token that is used to ensure the idempotence of the request.",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "ClientToken"
        ]
      }
    },
    "VpcOwnerId": {
      "Description": "The ID of the Alibaba Cloud account to which the VPC belongs.",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "VpcOwnerId"
        ]
      }
    },
    "TransitRouterAttachmentDescription": {
      "Description": "The description of the VPC connection.",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "TransitRouterAttachmentDescription"
        ]
      }
    },
    "TransitRouterId": {
      "Description": "The ID of the transit router.",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "TransitRouterId"
        ]
      }
    }
  }
}