1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cen
  5. TransitRouterPeerAttachment
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cen.TransitRouterPeerAttachment

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

    Provides a Cloud Enterprise Network (CEN) Transit Router Peer Attachment resource.

    For information about Cloud Enterprise Network (CEN) Transit Router Peer Attachment and how to use it, see What is Transit Router Peer Attachment.

    NOTE: Available since v1.128.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf_example";
    const region = config.get("region") || "cn-hangzhou";
    const peerRegion = config.get("peerRegion") || "cn-beijing";
    const example = new alicloud.cen.Instance("example", {
        cenInstanceName: name,
        protectionLevel: "REDUCED",
    });
    const exampleBandwidthPackage = new alicloud.cen.BandwidthPackage("example", {
        bandwidth: 5,
        cenBandwidthPackageName: "tf_example",
        geographicRegionAId: "China",
        geographicRegionBId: "China",
    });
    const exampleBandwidthPackageAttachment = new alicloud.cen.BandwidthPackageAttachment("example", {
        instanceId: example.id,
        bandwidthPackageId: exampleBandwidthPackage.id,
    });
    const exampleTransitRouter = new alicloud.cen.TransitRouter("example", {cenId: exampleBandwidthPackageAttachment.instanceId});
    const peer = new alicloud.cen.TransitRouter("peer", {cenId: exampleTransitRouter.cenId});
    const exampleTransitRouterPeerAttachment = new alicloud.cen.TransitRouterPeerAttachment("example", {
        cenId: example.id,
        transitRouterId: exampleTransitRouter.transitRouterId,
        peerTransitRouterRegionId: peerRegion,
        peerTransitRouterId: peer.transitRouterId,
        cenBandwidthPackageId: exampleBandwidthPackageAttachment.bandwidthPackageId,
        bandwidth: 5,
        transitRouterAttachmentDescription: name,
        transitRouterAttachmentName: name,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf_example"
    region = config.get("region")
    if region is None:
        region = "cn-hangzhou"
    peer_region = config.get("peerRegion")
    if peer_region is None:
        peer_region = "cn-beijing"
    example = alicloud.cen.Instance("example",
        cen_instance_name=name,
        protection_level="REDUCED")
    example_bandwidth_package = alicloud.cen.BandwidthPackage("example",
        bandwidth=5,
        cen_bandwidth_package_name="tf_example",
        geographic_region_a_id="China",
        geographic_region_b_id="China")
    example_bandwidth_package_attachment = alicloud.cen.BandwidthPackageAttachment("example",
        instance_id=example.id,
        bandwidth_package_id=example_bandwidth_package.id)
    example_transit_router = alicloud.cen.TransitRouter("example", cen_id=example_bandwidth_package_attachment.instance_id)
    peer = alicloud.cen.TransitRouter("peer", cen_id=example_transit_router.cen_id)
    example_transit_router_peer_attachment = alicloud.cen.TransitRouterPeerAttachment("example",
        cen_id=example.id,
        transit_router_id=example_transit_router.transit_router_id,
        peer_transit_router_region_id=peer_region,
        peer_transit_router_id=peer.transit_router_id,
        cen_bandwidth_package_id=example_bandwidth_package_attachment.bandwidth_package_id,
        bandwidth=5,
        transit_router_attachment_description=name,
        transit_router_attachment_name=name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf_example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		region := "cn-hangzhou"
    		if param := cfg.Get("region"); param != "" {
    			region = param
    		}
    		peerRegion := "cn-beijing"
    		if param := cfg.Get("peerRegion"); param != "" {
    			peerRegion = param
    		}
    		example, err := cen.NewInstance(ctx, "example", &cen.InstanceArgs{
    			CenInstanceName: pulumi.String(name),
    			ProtectionLevel: pulumi.String("REDUCED"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleBandwidthPackage, err := cen.NewBandwidthPackage(ctx, "example", &cen.BandwidthPackageArgs{
    			Bandwidth:               pulumi.Int(5),
    			CenBandwidthPackageName: pulumi.String("tf_example"),
    			GeographicRegionAId:     pulumi.String("China"),
    			GeographicRegionBId:     pulumi.String("China"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleBandwidthPackageAttachment, err := cen.NewBandwidthPackageAttachment(ctx, "example", &cen.BandwidthPackageAttachmentArgs{
    			InstanceId:         example.ID(),
    			BandwidthPackageId: exampleBandwidthPackage.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTransitRouter, err := cen.NewTransitRouter(ctx, "example", &cen.TransitRouterArgs{
    			CenId: exampleBandwidthPackageAttachment.InstanceId,
    		})
    		if err != nil {
    			return err
    		}
    		peer, err := cen.NewTransitRouter(ctx, "peer", &cen.TransitRouterArgs{
    			CenId: exampleTransitRouter.CenId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewTransitRouterPeerAttachment(ctx, "example", &cen.TransitRouterPeerAttachmentArgs{
    			CenId:                              example.ID(),
    			TransitRouterId:                    exampleTransitRouter.TransitRouterId,
    			PeerTransitRouterRegionId:          pulumi.String(peerRegion),
    			PeerTransitRouterId:                peer.TransitRouterId,
    			CenBandwidthPackageId:              exampleBandwidthPackageAttachment.BandwidthPackageId,
    			Bandwidth:                          pulumi.Int(5),
    			TransitRouterAttachmentDescription: pulumi.String(name),
    			TransitRouterAttachmentName:        pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf_example";
        var region = config.Get("region") ?? "cn-hangzhou";
        var peerRegion = config.Get("peerRegion") ?? "cn-beijing";
        var example = new AliCloud.Cen.Instance("example", new()
        {
            CenInstanceName = name,
            ProtectionLevel = "REDUCED",
        });
    
        var exampleBandwidthPackage = new AliCloud.Cen.BandwidthPackage("example", new()
        {
            Bandwidth = 5,
            CenBandwidthPackageName = "tf_example",
            GeographicRegionAId = "China",
            GeographicRegionBId = "China",
        });
    
        var exampleBandwidthPackageAttachment = new AliCloud.Cen.BandwidthPackageAttachment("example", new()
        {
            InstanceId = example.Id,
            BandwidthPackageId = exampleBandwidthPackage.Id,
        });
    
        var exampleTransitRouter = new AliCloud.Cen.TransitRouter("example", new()
        {
            CenId = exampleBandwidthPackageAttachment.InstanceId,
        });
    
        var peer = new AliCloud.Cen.TransitRouter("peer", new()
        {
            CenId = exampleTransitRouter.CenId,
        });
    
        var exampleTransitRouterPeerAttachment = new AliCloud.Cen.TransitRouterPeerAttachment("example", new()
        {
            CenId = example.Id,
            TransitRouterId = exampleTransitRouter.TransitRouterId,
            PeerTransitRouterRegionId = peerRegion,
            PeerTransitRouterId = peer.TransitRouterId,
            CenBandwidthPackageId = exampleBandwidthPackageAttachment.BandwidthPackageId,
            Bandwidth = 5,
            TransitRouterAttachmentDescription = name,
            TransitRouterAttachmentName = name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cen.Instance;
    import com.pulumi.alicloud.cen.InstanceArgs;
    import com.pulumi.alicloud.cen.BandwidthPackage;
    import com.pulumi.alicloud.cen.BandwidthPackageArgs;
    import com.pulumi.alicloud.cen.BandwidthPackageAttachment;
    import com.pulumi.alicloud.cen.BandwidthPackageAttachmentArgs;
    import com.pulumi.alicloud.cen.TransitRouter;
    import com.pulumi.alicloud.cen.TransitRouterArgs;
    import com.pulumi.alicloud.cen.TransitRouterPeerAttachment;
    import com.pulumi.alicloud.cen.TransitRouterPeerAttachmentArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf_example");
            final var region = config.get("region").orElse("cn-hangzhou");
            final var peerRegion = config.get("peerRegion").orElse("cn-beijing");
            var example = new Instance("example", InstanceArgs.builder()
                .cenInstanceName(name)
                .protectionLevel("REDUCED")
                .build());
    
            var exampleBandwidthPackage = new BandwidthPackage("exampleBandwidthPackage", BandwidthPackageArgs.builder()
                .bandwidth(5)
                .cenBandwidthPackageName("tf_example")
                .geographicRegionAId("China")
                .geographicRegionBId("China")
                .build());
    
            var exampleBandwidthPackageAttachment = new BandwidthPackageAttachment("exampleBandwidthPackageAttachment", BandwidthPackageAttachmentArgs.builder()
                .instanceId(example.id())
                .bandwidthPackageId(exampleBandwidthPackage.id())
                .build());
    
            var exampleTransitRouter = new TransitRouter("exampleTransitRouter", TransitRouterArgs.builder()
                .cenId(exampleBandwidthPackageAttachment.instanceId())
                .build());
    
            var peer = new TransitRouter("peer", TransitRouterArgs.builder()
                .cenId(exampleTransitRouter.cenId())
                .build());
    
            var exampleTransitRouterPeerAttachment = new TransitRouterPeerAttachment("exampleTransitRouterPeerAttachment", TransitRouterPeerAttachmentArgs.builder()
                .cenId(example.id())
                .transitRouterId(exampleTransitRouter.transitRouterId())
                .peerTransitRouterRegionId(peerRegion)
                .peerTransitRouterId(peer.transitRouterId())
                .cenBandwidthPackageId(exampleBandwidthPackageAttachment.bandwidthPackageId())
                .bandwidth(5)
                .transitRouterAttachmentDescription(name)
                .transitRouterAttachmentName(name)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_example
      region:
        type: string
        default: cn-hangzhou
      peerRegion:
        type: string
        default: cn-beijing
    resources:
      example:
        type: alicloud:cen:Instance
        properties:
          cenInstanceName: ${name}
          protectionLevel: REDUCED
      exampleBandwidthPackage:
        type: alicloud:cen:BandwidthPackage
        name: example
        properties:
          bandwidth: 5
          cenBandwidthPackageName: tf_example
          geographicRegionAId: China
          geographicRegionBId: China
      exampleBandwidthPackageAttachment:
        type: alicloud:cen:BandwidthPackageAttachment
        name: example
        properties:
          instanceId: ${example.id}
          bandwidthPackageId: ${exampleBandwidthPackage.id}
      exampleTransitRouter:
        type: alicloud:cen:TransitRouter
        name: example
        properties:
          cenId: ${exampleBandwidthPackageAttachment.instanceId}
      peer:
        type: alicloud:cen:TransitRouter
        properties:
          cenId: ${exampleTransitRouter.cenId}
      exampleTransitRouterPeerAttachment:
        type: alicloud:cen:TransitRouterPeerAttachment
        name: example
        properties:
          cenId: ${example.id}
          transitRouterId: ${exampleTransitRouter.transitRouterId}
          peerTransitRouterRegionId: ${peerRegion}
          peerTransitRouterId: ${peer.transitRouterId}
          cenBandwidthPackageId: ${exampleBandwidthPackageAttachment.bandwidthPackageId}
          bandwidth: 5
          transitRouterAttachmentDescription: ${name}
          transitRouterAttachmentName: ${name}
    

    Create TransitRouterPeerAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TransitRouterPeerAttachment(name: string, args: TransitRouterPeerAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def TransitRouterPeerAttachment(resource_name: str,
                                    args: TransitRouterPeerAttachmentArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def TransitRouterPeerAttachment(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    peer_transit_router_id: Optional[str] = None,
                                    peer_transit_router_region_id: Optional[str] = None,
                                    route_table_association_enabled: Optional[bool] = None,
                                    cen_bandwidth_package_id: Optional[str] = None,
                                    cen_id: Optional[str] = None,
                                    default_link_type: Optional[str] = None,
                                    dry_run: Optional[bool] = None,
                                    bandwidth_type: Optional[str] = None,
                                    bandwidth: Optional[int] = None,
                                    resource_type: Optional[str] = None,
                                    auto_publish_route_enabled: Optional[bool] = None,
                                    route_table_propagation_enabled: Optional[bool] = None,
                                    tags: Optional[Mapping[str, str]] = None,
                                    transit_router_attachment_description: Optional[str] = None,
                                    transit_router_attachment_name: Optional[str] = None,
                                    transit_router_id: Optional[str] = None,
                                    transit_router_peer_attachment_name: Optional[str] = None)
    func NewTransitRouterPeerAttachment(ctx *Context, name string, args TransitRouterPeerAttachmentArgs, opts ...ResourceOption) (*TransitRouterPeerAttachment, error)
    public TransitRouterPeerAttachment(string name, TransitRouterPeerAttachmentArgs args, CustomResourceOptions? opts = null)
    public TransitRouterPeerAttachment(String name, TransitRouterPeerAttachmentArgs args)
    public TransitRouterPeerAttachment(String name, TransitRouterPeerAttachmentArgs args, CustomResourceOptions options)
    
    type: alicloud:cen:TransitRouterPeerAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TransitRouterPeerAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TransitRouterPeerAttachmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TransitRouterPeerAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TransitRouterPeerAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TransitRouterPeerAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var transitRouterPeerAttachmentResource = new AliCloud.Cen.TransitRouterPeerAttachment("transitRouterPeerAttachmentResource", new()
    {
        PeerTransitRouterId = "string",
        PeerTransitRouterRegionId = "string",
        CenBandwidthPackageId = "string",
        CenId = "string",
        DefaultLinkType = "string",
        DryRun = false,
        BandwidthType = "string",
        Bandwidth = 0,
        ResourceType = "string",
        AutoPublishRouteEnabled = false,
        Tags = 
        {
            { "string", "string" },
        },
        TransitRouterAttachmentDescription = "string",
        TransitRouterId = "string",
        TransitRouterPeerAttachmentName = "string",
    });
    
    example, err := cen.NewTransitRouterPeerAttachment(ctx, "transitRouterPeerAttachmentResource", &cen.TransitRouterPeerAttachmentArgs{
    	PeerTransitRouterId:       pulumi.String("string"),
    	PeerTransitRouterRegionId: pulumi.String("string"),
    	CenBandwidthPackageId:     pulumi.String("string"),
    	CenId:                     pulumi.String("string"),
    	DefaultLinkType:           pulumi.String("string"),
    	DryRun:                    pulumi.Bool(false),
    	BandwidthType:             pulumi.String("string"),
    	Bandwidth:                 pulumi.Int(0),
    	ResourceType:              pulumi.String("string"),
    	AutoPublishRouteEnabled:   pulumi.Bool(false),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TransitRouterAttachmentDescription: pulumi.String("string"),
    	TransitRouterId:                    pulumi.String("string"),
    	TransitRouterPeerAttachmentName:    pulumi.String("string"),
    })
    
    var transitRouterPeerAttachmentResource = new TransitRouterPeerAttachment("transitRouterPeerAttachmentResource", TransitRouterPeerAttachmentArgs.builder()
        .peerTransitRouterId("string")
        .peerTransitRouterRegionId("string")
        .cenBandwidthPackageId("string")
        .cenId("string")
        .defaultLinkType("string")
        .dryRun(false)
        .bandwidthType("string")
        .bandwidth(0)
        .resourceType("string")
        .autoPublishRouteEnabled(false)
        .tags(Map.of("string", "string"))
        .transitRouterAttachmentDescription("string")
        .transitRouterId("string")
        .transitRouterPeerAttachmentName("string")
        .build());
    
    transit_router_peer_attachment_resource = alicloud.cen.TransitRouterPeerAttachment("transitRouterPeerAttachmentResource",
        peer_transit_router_id="string",
        peer_transit_router_region_id="string",
        cen_bandwidth_package_id="string",
        cen_id="string",
        default_link_type="string",
        dry_run=False,
        bandwidth_type="string",
        bandwidth=0,
        resource_type="string",
        auto_publish_route_enabled=False,
        tags={
            "string": "string",
        },
        transit_router_attachment_description="string",
        transit_router_id="string",
        transit_router_peer_attachment_name="string")
    
    const transitRouterPeerAttachmentResource = new alicloud.cen.TransitRouterPeerAttachment("transitRouterPeerAttachmentResource", {
        peerTransitRouterId: "string",
        peerTransitRouterRegionId: "string",
        cenBandwidthPackageId: "string",
        cenId: "string",
        defaultLinkType: "string",
        dryRun: false,
        bandwidthType: "string",
        bandwidth: 0,
        resourceType: "string",
        autoPublishRouteEnabled: false,
        tags: {
            string: "string",
        },
        transitRouterAttachmentDescription: "string",
        transitRouterId: "string",
        transitRouterPeerAttachmentName: "string",
    });
    
    type: alicloud:cen:TransitRouterPeerAttachment
    properties:
        autoPublishRouteEnabled: false
        bandwidth: 0
        bandwidthType: string
        cenBandwidthPackageId: string
        cenId: string
        defaultLinkType: string
        dryRun: false
        peerTransitRouterId: string
        peerTransitRouterRegionId: string
        resourceType: string
        tags:
            string: string
        transitRouterAttachmentDescription: string
        transitRouterId: string
        transitRouterPeerAttachmentName: string
    

    TransitRouterPeerAttachment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TransitRouterPeerAttachment resource accepts the following input properties:

    PeerTransitRouterId string
    The ID of the peer transit router.
    AutoPublishRouteEnabled bool
    Specifies whether to enable the local Enterprise Edition transit router to automatically advertise the routes of the inter-region connection to the peer transit router. Valid values:
    Bandwidth int
    The bandwidth value of the inter-region connection. Unit: Mbit/s.

    • This parameter specifies the maximum bandwidth value for the inter-region connection if you set BandwidthType to BandwidthPackage.
    • This parameter specifies the bandwidth throttling threshold for the inter-region connection if you set BandwidthType to DataTransfer.
    BandwidthType string
    The method that is used to allocate bandwidth to the inter-region connection. Valid values:

    • BandwidthPackage: allocates bandwidth from a bandwidth plan.
    • DataTransfer: bandwidth is billed based on the pay-by-data-transfer metering method.
    CenBandwidthPackageId string

    The ID of the bandwidth plan that is used to allocate bandwidth to the inter-region connection.

    NOTE: If you set BandwidthType to DataTransfer, you do not need to set this parameter.

    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    DefaultLinkType string
    The default line type. Valid values: Platinum and Gold. Platinum is supported only when BandwidthType is set to DataTransfer.
    DryRun bool
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    PeerTransitRouterRegionId string
    The ID of the region where the peer transit router is deployed.
    ResourceType string

    The resource type to attachment. Only support VR and default value is VR.

    The following arguments will be discarded. Please use new fields as soon as possible:

    RouteTableAssociationEnabled bool
    Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    RouteTablePropagationEnabled bool
    Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Tags Dictionary<string, string>
    The tag of the resource
    TransitRouterAttachmentDescription string
    The new description of the inter-region connection. This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
    TransitRouterAttachmentName string
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    TransitRouterId string
    The ID of the local Enterprise Edition transit router.
    TransitRouterPeerAttachmentName string
    The new name of the inter-region connection. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
    PeerTransitRouterId string
    The ID of the peer transit router.
    AutoPublishRouteEnabled bool
    Specifies whether to enable the local Enterprise Edition transit router to automatically advertise the routes of the inter-region connection to the peer transit router. Valid values:
    Bandwidth int
    The bandwidth value of the inter-region connection. Unit: Mbit/s.

    • This parameter specifies the maximum bandwidth value for the inter-region connection if you set BandwidthType to BandwidthPackage.
    • This parameter specifies the bandwidth throttling threshold for the inter-region connection if you set BandwidthType to DataTransfer.
    BandwidthType string
    The method that is used to allocate bandwidth to the inter-region connection. Valid values:

    • BandwidthPackage: allocates bandwidth from a bandwidth plan.
    • DataTransfer: bandwidth is billed based on the pay-by-data-transfer metering method.
    CenBandwidthPackageId string

    The ID of the bandwidth plan that is used to allocate bandwidth to the inter-region connection.

    NOTE: If you set BandwidthType to DataTransfer, you do not need to set this parameter.

    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    DefaultLinkType string
    The default line type. Valid values: Platinum and Gold. Platinum is supported only when BandwidthType is set to DataTransfer.
    DryRun bool
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    PeerTransitRouterRegionId string
    The ID of the region where the peer transit router is deployed.
    ResourceType string

    The resource type to attachment. Only support VR and default value is VR.

    The following arguments will be discarded. Please use new fields as soon as possible:

    RouteTableAssociationEnabled bool
    Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    RouteTablePropagationEnabled bool
    Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Tags map[string]string
    The tag of the resource
    TransitRouterAttachmentDescription string
    The new description of the inter-region connection. This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
    TransitRouterAttachmentName string
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    TransitRouterId string
    The ID of the local Enterprise Edition transit router.
    TransitRouterPeerAttachmentName string
    The new name of the inter-region connection. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
    peerTransitRouterId String
    The ID of the peer transit router.
    autoPublishRouteEnabled Boolean
    Specifies whether to enable the local Enterprise Edition transit router to automatically advertise the routes of the inter-region connection to the peer transit router. Valid values:
    bandwidth Integer
    The bandwidth value of the inter-region connection. Unit: Mbit/s.

    • This parameter specifies the maximum bandwidth value for the inter-region connection if you set BandwidthType to BandwidthPackage.
    • This parameter specifies the bandwidth throttling threshold for the inter-region connection if you set BandwidthType to DataTransfer.
    bandwidthType String
    The method that is used to allocate bandwidth to the inter-region connection. Valid values:

    • BandwidthPackage: allocates bandwidth from a bandwidth plan.
    • DataTransfer: bandwidth is billed based on the pay-by-data-transfer metering method.
    cenBandwidthPackageId String

    The ID of the bandwidth plan that is used to allocate bandwidth to the inter-region connection.

    NOTE: If you set BandwidthType to DataTransfer, you do not need to set this parameter.

    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    defaultLinkType String
    The default line type. Valid values: Platinum and Gold. Platinum is supported only when BandwidthType is set to DataTransfer.
    dryRun Boolean
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    peerTransitRouterRegionId String
    The ID of the region where the peer transit router is deployed.
    resourceType String

    The resource type to attachment. Only support VR and default value is VR.

    The following arguments will be discarded. Please use new fields as soon as possible:

    routeTableAssociationEnabled Boolean
    Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    routeTablePropagationEnabled Boolean
    Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    tags Map<String,String>
    The tag of the resource
    transitRouterAttachmentDescription String
    The new description of the inter-region connection. This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
    transitRouterAttachmentName String
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    transitRouterId String
    The ID of the local Enterprise Edition transit router.
    transitRouterPeerAttachmentName String
    The new name of the inter-region connection. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
    peerTransitRouterId string
    The ID of the peer transit router.
    autoPublishRouteEnabled boolean
    Specifies whether to enable the local Enterprise Edition transit router to automatically advertise the routes of the inter-region connection to the peer transit router. Valid values:
    bandwidth number
    The bandwidth value of the inter-region connection. Unit: Mbit/s.

    • This parameter specifies the maximum bandwidth value for the inter-region connection if you set BandwidthType to BandwidthPackage.
    • This parameter specifies the bandwidth throttling threshold for the inter-region connection if you set BandwidthType to DataTransfer.
    bandwidthType string
    The method that is used to allocate bandwidth to the inter-region connection. Valid values:

    • BandwidthPackage: allocates bandwidth from a bandwidth plan.
    • DataTransfer: bandwidth is billed based on the pay-by-data-transfer metering method.
    cenBandwidthPackageId string

    The ID of the bandwidth plan that is used to allocate bandwidth to the inter-region connection.

    NOTE: If you set BandwidthType to DataTransfer, you do not need to set this parameter.

    cenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    defaultLinkType string
    The default line type. Valid values: Platinum and Gold. Platinum is supported only when BandwidthType is set to DataTransfer.
    dryRun boolean
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    peerTransitRouterRegionId string
    The ID of the region where the peer transit router is deployed.
    resourceType string

    The resource type to attachment. Only support VR and default value is VR.

    The following arguments will be discarded. Please use new fields as soon as possible:

    routeTableAssociationEnabled boolean
    Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    routeTablePropagationEnabled boolean
    Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    tags {[key: string]: string}
    The tag of the resource
    transitRouterAttachmentDescription string
    The new description of the inter-region connection. This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
    transitRouterAttachmentName string
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    transitRouterId string
    The ID of the local Enterprise Edition transit router.
    transitRouterPeerAttachmentName string
    The new name of the inter-region connection. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
    peer_transit_router_id str
    The ID of the peer transit router.
    auto_publish_route_enabled bool
    Specifies whether to enable the local Enterprise Edition transit router to automatically advertise the routes of the inter-region connection to the peer transit router. Valid values:
    bandwidth int
    The bandwidth value of the inter-region connection. Unit: Mbit/s.

    • This parameter specifies the maximum bandwidth value for the inter-region connection if you set BandwidthType to BandwidthPackage.
    • This parameter specifies the bandwidth throttling threshold for the inter-region connection if you set BandwidthType to DataTransfer.
    bandwidth_type str
    The method that is used to allocate bandwidth to the inter-region connection. Valid values:

    • BandwidthPackage: allocates bandwidth from a bandwidth plan.
    • DataTransfer: bandwidth is billed based on the pay-by-data-transfer metering method.
    cen_bandwidth_package_id str

    The ID of the bandwidth plan that is used to allocate bandwidth to the inter-region connection.

    NOTE: If you set BandwidthType to DataTransfer, you do not need to set this parameter.

    cen_id str
    The ID of the Cloud Enterprise Network (CEN) instance.
    default_link_type str
    The default line type. Valid values: Platinum and Gold. Platinum is supported only when BandwidthType is set to DataTransfer.
    dry_run bool
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    peer_transit_router_region_id str
    The ID of the region where the peer transit router is deployed.
    resource_type str

    The resource type to attachment. Only support VR and default value is VR.

    The following arguments will be discarded. Please use new fields as soon as possible:

    route_table_association_enabled bool
    Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    route_table_propagation_enabled bool
    Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    tags Mapping[str, str]
    The tag of the resource
    transit_router_attachment_description str
    The new description of the inter-region connection. This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
    transit_router_attachment_name str
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    transit_router_id str
    The ID of the local Enterprise Edition transit router.
    transit_router_peer_attachment_name str
    The new name of the inter-region connection. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
    peerTransitRouterId String
    The ID of the peer transit router.
    autoPublishRouteEnabled Boolean
    Specifies whether to enable the local Enterprise Edition transit router to automatically advertise the routes of the inter-region connection to the peer transit router. Valid values:
    bandwidth Number
    The bandwidth value of the inter-region connection. Unit: Mbit/s.

    • This parameter specifies the maximum bandwidth value for the inter-region connection if you set BandwidthType to BandwidthPackage.
    • This parameter specifies the bandwidth throttling threshold for the inter-region connection if you set BandwidthType to DataTransfer.
    bandwidthType String
    The method that is used to allocate bandwidth to the inter-region connection. Valid values:

    • BandwidthPackage: allocates bandwidth from a bandwidth plan.
    • DataTransfer: bandwidth is billed based on the pay-by-data-transfer metering method.
    cenBandwidthPackageId String

    The ID of the bandwidth plan that is used to allocate bandwidth to the inter-region connection.

    NOTE: If you set BandwidthType to DataTransfer, you do not need to set this parameter.

    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    defaultLinkType String
    The default line type. Valid values: Platinum and Gold. Platinum is supported only when BandwidthType is set to DataTransfer.
    dryRun Boolean
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    peerTransitRouterRegionId String
    The ID of the region where the peer transit router is deployed.
    resourceType String

    The resource type to attachment. Only support VR and default value is VR.

    The following arguments will be discarded. Please use new fields as soon as possible:

    routeTableAssociationEnabled Boolean
    Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    routeTablePropagationEnabled Boolean
    Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    tags Map<String>
    The tag of the resource
    transitRouterAttachmentDescription String
    The new description of the inter-region connection. This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
    transitRouterAttachmentName String
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    transitRouterId String
    The ID of the local Enterprise Edition transit router.
    transitRouterPeerAttachmentName String
    The new name of the inter-region connection. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TransitRouterPeerAttachment resource produces the following output properties:

    CreateTime string
    The creation time of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    The ID of the region where the local Enterprise Edition transit router is deployed.
    Status string
    The status of the resource
    TransitRouterAttachmentId string
    The ID of the inter-region connection.
    CreateTime string
    The creation time of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    The ID of the region where the local Enterprise Edition transit router is deployed.
    Status string
    The status of the resource
    TransitRouterAttachmentId string
    The ID of the inter-region connection.
    createTime String
    The creation time of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    regionId String
    The ID of the region where the local Enterprise Edition transit router is deployed.
    status String
    The status of the resource
    transitRouterAttachmentId String
    The ID of the inter-region connection.
    createTime string
    The creation time of the resource
    id string
    The provider-assigned unique ID for this managed resource.
    regionId string
    The ID of the region where the local Enterprise Edition transit router is deployed.
    status string
    The status of the resource
    transitRouterAttachmentId string
    The ID of the inter-region connection.
    create_time str
    The creation time of the resource
    id str
    The provider-assigned unique ID for this managed resource.
    region_id str
    The ID of the region where the local Enterprise Edition transit router is deployed.
    status str
    The status of the resource
    transit_router_attachment_id str
    The ID of the inter-region connection.
    createTime String
    The creation time of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    regionId String
    The ID of the region where the local Enterprise Edition transit router is deployed.
    status String
    The status of the resource
    transitRouterAttachmentId String
    The ID of the inter-region connection.

    Look up Existing TransitRouterPeerAttachment Resource

    Get an existing TransitRouterPeerAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TransitRouterPeerAttachmentState, opts?: CustomResourceOptions): TransitRouterPeerAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_publish_route_enabled: Optional[bool] = None,
            bandwidth: Optional[int] = None,
            bandwidth_type: Optional[str] = None,
            cen_bandwidth_package_id: Optional[str] = None,
            cen_id: Optional[str] = None,
            create_time: Optional[str] = None,
            default_link_type: Optional[str] = None,
            dry_run: Optional[bool] = None,
            peer_transit_router_id: Optional[str] = None,
            peer_transit_router_region_id: Optional[str] = None,
            region_id: Optional[str] = None,
            resource_type: Optional[str] = None,
            route_table_association_enabled: Optional[bool] = None,
            route_table_propagation_enabled: Optional[bool] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            transit_router_attachment_description: Optional[str] = None,
            transit_router_attachment_id: Optional[str] = None,
            transit_router_attachment_name: Optional[str] = None,
            transit_router_id: Optional[str] = None,
            transit_router_peer_attachment_name: Optional[str] = None) -> TransitRouterPeerAttachment
    func GetTransitRouterPeerAttachment(ctx *Context, name string, id IDInput, state *TransitRouterPeerAttachmentState, opts ...ResourceOption) (*TransitRouterPeerAttachment, error)
    public static TransitRouterPeerAttachment Get(string name, Input<string> id, TransitRouterPeerAttachmentState? state, CustomResourceOptions? opts = null)
    public static TransitRouterPeerAttachment get(String name, Output<String> id, TransitRouterPeerAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:cen:TransitRouterPeerAttachment    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutoPublishRouteEnabled bool
    Specifies whether to enable the local Enterprise Edition transit router to automatically advertise the routes of the inter-region connection to the peer transit router. Valid values:
    Bandwidth int
    The bandwidth value of the inter-region connection. Unit: Mbit/s.

    • This parameter specifies the maximum bandwidth value for the inter-region connection if you set BandwidthType to BandwidthPackage.
    • This parameter specifies the bandwidth throttling threshold for the inter-region connection if you set BandwidthType to DataTransfer.
    BandwidthType string
    The method that is used to allocate bandwidth to the inter-region connection. Valid values:

    • BandwidthPackage: allocates bandwidth from a bandwidth plan.
    • DataTransfer: bandwidth is billed based on the pay-by-data-transfer metering method.
    CenBandwidthPackageId string

    The ID of the bandwidth plan that is used to allocate bandwidth to the inter-region connection.

    NOTE: If you set BandwidthType to DataTransfer, you do not need to set this parameter.

    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    CreateTime string
    The creation time of the resource
    DefaultLinkType string
    The default line type. Valid values: Platinum and Gold. Platinum is supported only when BandwidthType is set to DataTransfer.
    DryRun bool
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    PeerTransitRouterId string
    The ID of the peer transit router.
    PeerTransitRouterRegionId string
    The ID of the region where the peer transit router is deployed.
    RegionId string
    The ID of the region where the local Enterprise Edition transit router is deployed.
    ResourceType string

    The resource type to attachment. Only support VR and default value is VR.

    The following arguments will be discarded. Please use new fields as soon as possible:

    RouteTableAssociationEnabled bool
    Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    RouteTablePropagationEnabled bool
    Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Status string
    The status of the resource
    Tags Dictionary<string, string>
    The tag of the resource
    TransitRouterAttachmentDescription string
    The new description of the inter-region connection. This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
    TransitRouterAttachmentId string
    The ID of the inter-region connection.
    TransitRouterAttachmentName string
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    TransitRouterId string
    The ID of the local Enterprise Edition transit router.
    TransitRouterPeerAttachmentName string
    The new name of the inter-region connection. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
    AutoPublishRouteEnabled bool
    Specifies whether to enable the local Enterprise Edition transit router to automatically advertise the routes of the inter-region connection to the peer transit router. Valid values:
    Bandwidth int
    The bandwidth value of the inter-region connection. Unit: Mbit/s.

    • This parameter specifies the maximum bandwidth value for the inter-region connection if you set BandwidthType to BandwidthPackage.
    • This parameter specifies the bandwidth throttling threshold for the inter-region connection if you set BandwidthType to DataTransfer.
    BandwidthType string
    The method that is used to allocate bandwidth to the inter-region connection. Valid values:

    • BandwidthPackage: allocates bandwidth from a bandwidth plan.
    • DataTransfer: bandwidth is billed based on the pay-by-data-transfer metering method.
    CenBandwidthPackageId string

    The ID of the bandwidth plan that is used to allocate bandwidth to the inter-region connection.

    NOTE: If you set BandwidthType to DataTransfer, you do not need to set this parameter.

    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    CreateTime string
    The creation time of the resource
    DefaultLinkType string
    The default line type. Valid values: Platinum and Gold. Platinum is supported only when BandwidthType is set to DataTransfer.
    DryRun bool
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    PeerTransitRouterId string
    The ID of the peer transit router.
    PeerTransitRouterRegionId string
    The ID of the region where the peer transit router is deployed.
    RegionId string
    The ID of the region where the local Enterprise Edition transit router is deployed.
    ResourceType string

    The resource type to attachment. Only support VR and default value is VR.

    The following arguments will be discarded. Please use new fields as soon as possible:

    RouteTableAssociationEnabled bool
    Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    RouteTablePropagationEnabled bool
    Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Status string
    The status of the resource
    Tags map[string]string
    The tag of the resource
    TransitRouterAttachmentDescription string
    The new description of the inter-region connection. This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
    TransitRouterAttachmentId string
    The ID of the inter-region connection.
    TransitRouterAttachmentName string
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    TransitRouterId string
    The ID of the local Enterprise Edition transit router.
    TransitRouterPeerAttachmentName string
    The new name of the inter-region connection. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
    autoPublishRouteEnabled Boolean
    Specifies whether to enable the local Enterprise Edition transit router to automatically advertise the routes of the inter-region connection to the peer transit router. Valid values:
    bandwidth Integer
    The bandwidth value of the inter-region connection. Unit: Mbit/s.

    • This parameter specifies the maximum bandwidth value for the inter-region connection if you set BandwidthType to BandwidthPackage.
    • This parameter specifies the bandwidth throttling threshold for the inter-region connection if you set BandwidthType to DataTransfer.
    bandwidthType String
    The method that is used to allocate bandwidth to the inter-region connection. Valid values:

    • BandwidthPackage: allocates bandwidth from a bandwidth plan.
    • DataTransfer: bandwidth is billed based on the pay-by-data-transfer metering method.
    cenBandwidthPackageId String

    The ID of the bandwidth plan that is used to allocate bandwidth to the inter-region connection.

    NOTE: If you set BandwidthType to DataTransfer, you do not need to set this parameter.

    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    createTime String
    The creation time of the resource
    defaultLinkType String
    The default line type. Valid values: Platinum and Gold. Platinum is supported only when BandwidthType is set to DataTransfer.
    dryRun Boolean
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    peerTransitRouterId String
    The ID of the peer transit router.
    peerTransitRouterRegionId String
    The ID of the region where the peer transit router is deployed.
    regionId String
    The ID of the region where the local Enterprise Edition transit router is deployed.
    resourceType String

    The resource type to attachment. Only support VR and default value is VR.

    The following arguments will be discarded. Please use new fields as soon as possible:

    routeTableAssociationEnabled Boolean
    Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    routeTablePropagationEnabled Boolean
    Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    status String
    The status of the resource
    tags Map<String,String>
    The tag of the resource
    transitRouterAttachmentDescription String
    The new description of the inter-region connection. This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
    transitRouterAttachmentId String
    The ID of the inter-region connection.
    transitRouterAttachmentName String
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    transitRouterId String
    The ID of the local Enterprise Edition transit router.
    transitRouterPeerAttachmentName String
    The new name of the inter-region connection. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
    autoPublishRouteEnabled boolean
    Specifies whether to enable the local Enterprise Edition transit router to automatically advertise the routes of the inter-region connection to the peer transit router. Valid values:
    bandwidth number
    The bandwidth value of the inter-region connection. Unit: Mbit/s.

    • This parameter specifies the maximum bandwidth value for the inter-region connection if you set BandwidthType to BandwidthPackage.
    • This parameter specifies the bandwidth throttling threshold for the inter-region connection if you set BandwidthType to DataTransfer.
    bandwidthType string
    The method that is used to allocate bandwidth to the inter-region connection. Valid values:

    • BandwidthPackage: allocates bandwidth from a bandwidth plan.
    • DataTransfer: bandwidth is billed based on the pay-by-data-transfer metering method.
    cenBandwidthPackageId string

    The ID of the bandwidth plan that is used to allocate bandwidth to the inter-region connection.

    NOTE: If you set BandwidthType to DataTransfer, you do not need to set this parameter.

    cenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    createTime string
    The creation time of the resource
    defaultLinkType string
    The default line type. Valid values: Platinum and Gold. Platinum is supported only when BandwidthType is set to DataTransfer.
    dryRun boolean
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    peerTransitRouterId string
    The ID of the peer transit router.
    peerTransitRouterRegionId string
    The ID of the region where the peer transit router is deployed.
    regionId string
    The ID of the region where the local Enterprise Edition transit router is deployed.
    resourceType string

    The resource type to attachment. Only support VR and default value is VR.

    The following arguments will be discarded. Please use new fields as soon as possible:

    routeTableAssociationEnabled boolean
    Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    routeTablePropagationEnabled boolean
    Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    status string
    The status of the resource
    tags {[key: string]: string}
    The tag of the resource
    transitRouterAttachmentDescription string
    The new description of the inter-region connection. This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
    transitRouterAttachmentId string
    The ID of the inter-region connection.
    transitRouterAttachmentName string
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    transitRouterId string
    The ID of the local Enterprise Edition transit router.
    transitRouterPeerAttachmentName string
    The new name of the inter-region connection. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
    auto_publish_route_enabled bool
    Specifies whether to enable the local Enterprise Edition transit router to automatically advertise the routes of the inter-region connection to the peer transit router. Valid values:
    bandwidth int
    The bandwidth value of the inter-region connection. Unit: Mbit/s.

    • This parameter specifies the maximum bandwidth value for the inter-region connection if you set BandwidthType to BandwidthPackage.
    • This parameter specifies the bandwidth throttling threshold for the inter-region connection if you set BandwidthType to DataTransfer.
    bandwidth_type str
    The method that is used to allocate bandwidth to the inter-region connection. Valid values:

    • BandwidthPackage: allocates bandwidth from a bandwidth plan.
    • DataTransfer: bandwidth is billed based on the pay-by-data-transfer metering method.
    cen_bandwidth_package_id str

    The ID of the bandwidth plan that is used to allocate bandwidth to the inter-region connection.

    NOTE: If you set BandwidthType to DataTransfer, you do not need to set this parameter.

    cen_id str
    The ID of the Cloud Enterprise Network (CEN) instance.
    create_time str
    The creation time of the resource
    default_link_type str
    The default line type. Valid values: Platinum and Gold. Platinum is supported only when BandwidthType is set to DataTransfer.
    dry_run bool
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    peer_transit_router_id str
    The ID of the peer transit router.
    peer_transit_router_region_id str
    The ID of the region where the peer transit router is deployed.
    region_id str
    The ID of the region where the local Enterprise Edition transit router is deployed.
    resource_type str

    The resource type to attachment. Only support VR and default value is VR.

    The following arguments will be discarded. Please use new fields as soon as possible:

    route_table_association_enabled bool
    Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    route_table_propagation_enabled bool
    Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    status str
    The status of the resource
    tags Mapping[str, str]
    The tag of the resource
    transit_router_attachment_description str
    The new description of the inter-region connection. This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
    transit_router_attachment_id str
    The ID of the inter-region connection.
    transit_router_attachment_name str
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    transit_router_id str
    The ID of the local Enterprise Edition transit router.
    transit_router_peer_attachment_name str
    The new name of the inter-region connection. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
    autoPublishRouteEnabled Boolean
    Specifies whether to enable the local Enterprise Edition transit router to automatically advertise the routes of the inter-region connection to the peer transit router. Valid values:
    bandwidth Number
    The bandwidth value of the inter-region connection. Unit: Mbit/s.

    • This parameter specifies the maximum bandwidth value for the inter-region connection if you set BandwidthType to BandwidthPackage.
    • This parameter specifies the bandwidth throttling threshold for the inter-region connection if you set BandwidthType to DataTransfer.
    bandwidthType String
    The method that is used to allocate bandwidth to the inter-region connection. Valid values:

    • BandwidthPackage: allocates bandwidth from a bandwidth plan.
    • DataTransfer: bandwidth is billed based on the pay-by-data-transfer metering method.
    cenBandwidthPackageId String

    The ID of the bandwidth plan that is used to allocate bandwidth to the inter-region connection.

    NOTE: If you set BandwidthType to DataTransfer, you do not need to set this parameter.

    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    createTime String
    The creation time of the resource
    defaultLinkType String
    The default line type. Valid values: Platinum and Gold. Platinum is supported only when BandwidthType is set to DataTransfer.
    dryRun Boolean
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    peerTransitRouterId String
    The ID of the peer transit router.
    peerTransitRouterRegionId String
    The ID of the region where the peer transit router is deployed.
    regionId String
    The ID of the region where the local Enterprise Edition transit router is deployed.
    resourceType String

    The resource type to attachment. Only support VR and default value is VR.

    The following arguments will be discarded. Please use new fields as soon as possible:

    routeTableAssociationEnabled Boolean
    Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.230.0.

    routeTablePropagationEnabled Boolean
    Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.230.0.

    status String
    The status of the resource
    tags Map<String>
    The tag of the resource
    transitRouterAttachmentDescription String
    The new description of the inter-region connection. This parameter is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.
    transitRouterAttachmentId String
    The ID of the inter-region connection.
    transitRouterAttachmentName String
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.247.0. New field 'transit_router_peer_attachment_name' instead.

    transitRouterId String
    The ID of the local Enterprise Edition transit router.
    transitRouterPeerAttachmentName String
    The new name of the inter-region connection. The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.

    Import

    Cloud Enterprise Network (CEN) Transit Router Peer Attachment can be imported using the id, e.g.

    $ pulumi import alicloud:cen/transitRouterPeerAttachment:TransitRouterPeerAttachment example <cen_id>:<transit_router_attachment_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi