すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::CEN::TransitRouterVpcAttachment

最終更新日:Jan 24, 2026

ALIYUN::CEN::TransitRouterVpcAttachment は、Enterprise Edition 転送ルータで仮想プライベートクラウド (VPC) 接続を作成するために使用されます。

構文

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

プロパティ

プロパティ名

タイプ

必須

更新を許可

説明

制約

VpcId

String

はい

いいえ

VPC の ID。

なし。

ZoneMappings

List

はい

いいえ

Enterprise Edition 転送ルータのプライマリゾーンとセカンダリゾーン。プライマリゾーンの vSwitch とセカンダリゾーンの vSwitch を選択する必要があります。

詳細については、「ZoneMappings のプロパティ」をご参照ください。

AutoCreateVpcRoute

Boolean

いいえ

いいえ

VPC ルートエントリを自動的に作成するかどうかを指定します。

有効な値:

  • true:VPC ルートエントリが自動的に作成されます。

  • false:VPC ルートエントリは手動で作成する必要があります。

AutoPublishRouteEnabled

Boolean

いいえ

はい

Enterprise Edition トランジットルーターが VPC インスタンスにルートを自動的に広報するかどうかを指定します。

有効な値:

  • false

  • true: はい、そうです。

CenId

String

いいえ

いいえ

Cloud Enterprise Network (CEN) インスタンスの ID。

なし。

ChargeType

String

いいえ

いいえ

課金方法。

デフォルト値: POSTPAY。POSTPAY の値は、従量課金制を指定します。

DeletionForce

Boolean

いいえ

いいえ

VPC 接続を強制的に削除するかどうかを指定します。

有効な値:

  • true:強制削除が実行されます。

  • false:強制削除は実行されません。

RouteTableAssociationEnabled

Boolean

いいえ

いいえ

ルートの関連転送相関を有効にするかどうかを指定します。

有効な値:

  • true:関連ルートの転送を有効にします。

  • false:関連ルートの転送を無効にします。

RouteTablePropagationEnabled

Boolean

いいえ

いいえ

ルート学習相関を有効にするかどうかを指定します。

有効な値:

  • true:ルート学習を有効にします。

  • false:ルート学習を無効にします。

TransitRouterAttachmentDescription

String

いいえ

はい

VPC 接続の説明。

説明は 2~256 文字の長さにする必要があります。先頭は英字または中国語文字にする必要がありますが、http:// または https:// で始めることはできません。

TransitRouterAttachmentName

String

いいえ

はい

VPC 接続の名前。

値は 2~128 文字の長さで、先頭は英字または中国語文字にする必要があり、英字、中国語文字、数字、アンダースコア (_)、ハイフン (-) で構成されている必要があります。

TransitRouterId

String

いいえ

いいえ

Enterprise Edition 転送ルータの ID。

なし。

TransitRouterVPCAttachmentOptions

Map

いいえ

はい

VPC 接続の機能プロパティ。

VPC 接続のプロパティ。

  • ipv6Support:IPv6 を有効にするかどうかを指定します。デフォルト値は、VPC 接続の現在の IPv6 ステータスです。

    • enable:IPv6 が有効になります。

    • disable:IPv6 が無効になります。

例:

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

VpcOwnerId

Integer

いいえ

いいえ

VPC が属する Alibaba Cloud アカウントの ID。

デフォルト値は、現在のログインアカウントの ID です。

ZoneMappings 構文

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

ZoneMappings プロパティ

プロパティ名

タイプ

必須

更新を許可

説明

制約

VSwitchId

String

はい

いいえ

Enterprise Edition 転送ルータのプライマリゾーンまたはセカンダリゾーンにある vSwitch の ID。

なし。

ZoneId

String

はい

いいえ

Enterprise Edition 転送ルータのプライマリゾーンまたはセカンダリゾーンの ID。

DescribeZones 操作を呼び出して、ゾーン ID をクエリできます。

戻り値

Fn::GetAtt

  • TransitRouterAttachmentId: VPC 接続の ID。

  • VpcId: VPC の ID。

  • CenId: CEN インスタンスの ID。

  • TransitRouterAttachmentName: VPC 接続の名前。

  • ResourceType: リソースタイプ。

  • VpcOwnerId: VPC が属する Alibaba Cloud アカウントの ID。デフォルト値は、現在のログインアカウントの ID です。

  • TransitRouterAttachmentDescription: VPC 接続の説明。

  • TransitRouterId: Enterprise Edition 転送ルータの ID。

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  CenId:
    Description: CEN インスタンスの ID。
    Type: String
  ChargeType:
    Description: VPC 接続の課金方法。値を PostPaid に設定します。これは、VPC 接続が従量課金方式を使用することを示します。
    Type: String
  TransitRouterAttachmentDescription:
    Description: VPC 接続の説明。
    Type: String
  TransitRouterAttachmentName:
    Description: VPC 接続の名前。
    Type: String
  TransitRouterId:
    Description: トランジットルーターの ID。
    Type: String
  VpcId:
    Description: VPC の ID。
    Type: String
  VpcOwnerId:
    Description: VPC が属する Alibaba Cloud アカウントの ID。
    Type: Number
  ZoneMappings:
    Description: ゾーンとゾーン内の vSwitch。
    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: CEN インスタンスの ID。
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - CenId
  ClientToken:
    Description: リクエストのべき等性を保証するために使用されるクライアントトークン。
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - ClientToken
  ResourceType:
    Description: リソースタイプ。
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - ResourceType
  TransitRouterAttachmentDescription:
    Description: VPC 接続の説明。
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - TransitRouterAttachmentDescription
  TransitRouterAttachmentId:
    Description: VPC 接続の ID。
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - TransitRouterAttachmentId
  TransitRouterAttachmentName:
    Description: VPC 接続の名前。
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - TransitRouterAttachmentName
  TransitRouterId:
    Description: トランジットルーターの ID。
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - TransitRouterId
  VpcId:
    Description: VPC の ID。
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
      - VpcId
  VpcOwnerId:
    Description: VPC が属する Alibaba Cloud アカウントの ID。
    Value:
      Fn::GetAtt:
      - CENTransitRouterVpcAttachment
        - VpcOwnerId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VpcId": {
      "Type": "String",
      "Description": "VPC の ID。"
    },
    "ChargeType": {
      "Type": "String",
      "Description": "VPC 接続の課金方法。値を PostPaid に設定します。これは、VPC 接続が従量課金方式を使用することを示します。"
    },
    "CenId": {
      "Type": "String",
      "Description": "CEN インスタンスの ID。"
    },
    "TransitRouterAttachmentName": {
      "Type": "String",
      "Description": "VPC 接続の名前。"
    },
    "ZoneMappings": {
      "Type": "Json",
      "Description": "ゾーンとゾーン内の vSwitch。",
      "MaxLength": 3
    },
    "VpcOwnerId": {
      "Type": "Number",
      "Description": "VPC が属する Alibaba Cloud アカウントの ID。"
    },
    "TransitRouterAttachmentDescription": {
      "Type": "String",
      "Description": "VPC 接続の説明。"
    },
    "TransitRouterId": {
      "Type": "String",
      "Description": "トランジットルーターの ID。"
    }
  },
  "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": "VPC 接続の ID。",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "TransitRouterAttachmentId"
        ]
      }
    },
    "VpcId": {
      "Description": "VPC の ID。",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "VpcId"
        ]
      }
    },
    "CenId": {
      "Description": "CEN インスタンスの ID。",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "CenId"
        ]
      }
    },
    "TransitRouterAttachmentName": {
      "Description": "VPC 接続の名前。",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "TransitRouterAttachmentName"
        ]
      }
    },
    "ResourceType": {
      "Description": "リソースタイプ。",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "ResourceType"
        ]
      }
    },
    "ClientToken": {
      "Description": "リクエストのべき等性を保証するために使用されるクライアントトークン。",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "ClientToken"
        ]
      }
    },
    "VpcOwnerId": {
      "Description": "VPC が属する Alibaba Cloud アカウントの ID。",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "VpcOwnerId"
        ]
      }
    },
    "TransitRouterAttachmentDescription": {
      "Description": "VPC 接続の説明。",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "TransitRouterAttachmentDescription"
        ]
      }
    },
    "TransitRouterId": {
      "Description": "トランジットルーターの ID。",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVpcAttachment",
          "TransitRouterId"
        ]
      }
    }
  }
}