1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cen
  5. TransitRouterPeerAttachment
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.cen.TransitRouterPeerAttachment

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Provides a CEN transit router peer attachment resource that associate the transit router with the CEN instance. What is CEN 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 hz = new alicloud.Provider("hz", {region: region});
    const bj = new alicloud.Provider("bj", {region: peerRegion});
    const exampleInstance = new alicloud.cen.Instance("exampleInstance", {
        cenInstanceName: name,
        protectionLevel: "REDUCED",
    }, {
        provider: alicloud.bj,
    });
    const exampleBandwidthPackage = new alicloud.cen.BandwidthPackage("exampleBandwidthPackage", {
        bandwidth: 5,
        cenBandwidthPackageName: "tf_example",
        geographicRegionAId: "China",
        geographicRegionBId: "China",
    }, {
        provider: alicloud.bj,
    });
    const exampleBandwidthPackageAttachment = new alicloud.cen.BandwidthPackageAttachment("exampleBandwidthPackageAttachment", {
        instanceId: exampleInstance.id,
        bandwidthPackageId: exampleBandwidthPackage.id,
    }, {
        provider: alicloud.bj,
    });
    const exampleTransitRouter = new alicloud.cen.TransitRouter("exampleTransitRouter", {cenId: exampleBandwidthPackageAttachment.instanceId}, {
        provider: alicloud.hz,
    });
    const peer = new alicloud.cen.TransitRouter("peer", {cenId: exampleTransitRouter.cenId}, {
        provider: alicloud.bj,
    });
    const exampleTransitRouterPeerAttachment = new alicloud.cen.TransitRouterPeerAttachment("exampleTransitRouterPeerAttachment", {
        cenId: exampleInstance.id,
        transitRouterId: exampleTransitRouter.transitRouterId,
        peerTransitRouterRegionId: peerRegion,
        peerTransitRouterId: peer.transitRouterId,
        cenBandwidthPackageId: exampleBandwidthPackageAttachment.bandwidthPackageId,
        bandwidth: 5,
        transitRouterAttachmentDescription: name,
        transitRouterAttachmentName: name,
    }, {
        provider: alicloud.hz,
    });
    
    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"
    hz = alicloud.Provider("hz", region=region)
    bj = alicloud.Provider("bj", region=peer_region)
    example_instance = alicloud.cen.Instance("exampleInstance",
        cen_instance_name=name,
        protection_level="REDUCED",
        opts=pulumi.ResourceOptions(provider=alicloud["bj"]))
    example_bandwidth_package = alicloud.cen.BandwidthPackage("exampleBandwidthPackage",
        bandwidth=5,
        cen_bandwidth_package_name="tf_example",
        geographic_region_a_id="China",
        geographic_region_b_id="China",
        opts=pulumi.ResourceOptions(provider=alicloud["bj"]))
    example_bandwidth_package_attachment = alicloud.cen.BandwidthPackageAttachment("exampleBandwidthPackageAttachment",
        instance_id=example_instance.id,
        bandwidth_package_id=example_bandwidth_package.id,
        opts=pulumi.ResourceOptions(provider=alicloud["bj"]))
    example_transit_router = alicloud.cen.TransitRouter("exampleTransitRouter", cen_id=example_bandwidth_package_attachment.instance_id,
    opts=pulumi.ResourceOptions(provider=alicloud["hz"]))
    peer = alicloud.cen.TransitRouter("peer", cen_id=example_transit_router.cen_id,
    opts=pulumi.ResourceOptions(provider=alicloud["bj"]))
    example_transit_router_peer_attachment = alicloud.cen.TransitRouterPeerAttachment("exampleTransitRouterPeerAttachment",
        cen_id=example_instance.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,
        opts=pulumi.ResourceOptions(provider=alicloud["hz"]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"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
    		}
    		_, err := alicloud.NewProvider(ctx, "hz", &alicloud.ProviderArgs{
    			Region: pulumi.String(region),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = alicloud.NewProvider(ctx, "bj", &alicloud.ProviderArgs{
    			Region: pulumi.String(peerRegion),
    		})
    		if err != nil {
    			return err
    		}
    		exampleInstance, err := cen.NewInstance(ctx, "exampleInstance", &cen.InstanceArgs{
    			CenInstanceName: pulumi.String(name),
    			ProtectionLevel: pulumi.String("REDUCED"),
    		}, pulumi.Provider(alicloud.Bj))
    		if err != nil {
    			return err
    		}
    		exampleBandwidthPackage, err := cen.NewBandwidthPackage(ctx, "exampleBandwidthPackage", &cen.BandwidthPackageArgs{
    			Bandwidth:               pulumi.Int(5),
    			CenBandwidthPackageName: pulumi.String("tf_example"),
    			GeographicRegionAId:     pulumi.String("China"),
    			GeographicRegionBId:     pulumi.String("China"),
    		}, pulumi.Provider(alicloud.Bj))
    		if err != nil {
    			return err
    		}
    		exampleBandwidthPackageAttachment, err := cen.NewBandwidthPackageAttachment(ctx, "exampleBandwidthPackageAttachment", &cen.BandwidthPackageAttachmentArgs{
    			InstanceId:         exampleInstance.ID(),
    			BandwidthPackageId: exampleBandwidthPackage.ID(),
    		}, pulumi.Provider(alicloud.Bj))
    		if err != nil {
    			return err
    		}
    		exampleTransitRouter, err := cen.NewTransitRouter(ctx, "exampleTransitRouter", &cen.TransitRouterArgs{
    			CenId: exampleBandwidthPackageAttachment.InstanceId,
    		}, pulumi.Provider(alicloud.Hz))
    		if err != nil {
    			return err
    		}
    		peer, err := cen.NewTransitRouter(ctx, "peer", &cen.TransitRouterArgs{
    			CenId: exampleTransitRouter.CenId,
    		}, pulumi.Provider(alicloud.Bj))
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewTransitRouterPeerAttachment(ctx, "exampleTransitRouterPeerAttachment", &cen.TransitRouterPeerAttachmentArgs{
    			CenId:                              exampleInstance.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),
    		}, pulumi.Provider(alicloud.Hz))
    		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 hz = new AliCloud.Provider("hz", new()
        {
            Region = region,
        });
    
        var bj = new AliCloud.Provider("bj", new()
        {
            Region = peerRegion,
        });
    
        var exampleInstance = new AliCloud.Cen.Instance("exampleInstance", new()
        {
            CenInstanceName = name,
            ProtectionLevel = "REDUCED",
        }, new CustomResourceOptions
        {
            Provider = alicloud.Bj,
        });
    
        var exampleBandwidthPackage = new AliCloud.Cen.BandwidthPackage("exampleBandwidthPackage", new()
        {
            Bandwidth = 5,
            CenBandwidthPackageName = "tf_example",
            GeographicRegionAId = "China",
            GeographicRegionBId = "China",
        }, new CustomResourceOptions
        {
            Provider = alicloud.Bj,
        });
    
        var exampleBandwidthPackageAttachment = new AliCloud.Cen.BandwidthPackageAttachment("exampleBandwidthPackageAttachment", new()
        {
            InstanceId = exampleInstance.Id,
            BandwidthPackageId = exampleBandwidthPackage.Id,
        }, new CustomResourceOptions
        {
            Provider = alicloud.Bj,
        });
    
        var exampleTransitRouter = new AliCloud.Cen.TransitRouter("exampleTransitRouter", new()
        {
            CenId = exampleBandwidthPackageAttachment.InstanceId,
        }, new CustomResourceOptions
        {
            Provider = alicloud.Hz,
        });
    
        var peer = new AliCloud.Cen.TransitRouter("peer", new()
        {
            CenId = exampleTransitRouter.CenId,
        }, new CustomResourceOptions
        {
            Provider = alicloud.Bj,
        });
    
        var exampleTransitRouterPeerAttachment = new AliCloud.Cen.TransitRouterPeerAttachment("exampleTransitRouterPeerAttachment", new()
        {
            CenId = exampleInstance.Id,
            TransitRouterId = exampleTransitRouter.TransitRouterId,
            PeerTransitRouterRegionId = peerRegion,
            PeerTransitRouterId = peer.TransitRouterId,
            CenBandwidthPackageId = exampleBandwidthPackageAttachment.BandwidthPackageId,
            Bandwidth = 5,
            TransitRouterAttachmentDescription = name,
            TransitRouterAttachmentName = name,
        }, new CustomResourceOptions
        {
            Provider = alicloud.Hz,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.Provider;
    import com.pulumi.alicloud.ProviderArgs;
    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 com.pulumi.resources.CustomResourceOptions;
    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 hz = new Provider("hz", ProviderArgs.builder()        
                .region(region)
                .build());
    
            var bj = new Provider("bj", ProviderArgs.builder()        
                .region(peerRegion)
                .build());
    
            var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()        
                .cenInstanceName(name)
                .protectionLevel("REDUCED")
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.bj())
                    .build());
    
            var exampleBandwidthPackage = new BandwidthPackage("exampleBandwidthPackage", BandwidthPackageArgs.builder()        
                .bandwidth(5)
                .cenBandwidthPackageName("tf_example")
                .geographicRegionAId("China")
                .geographicRegionBId("China")
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.bj())
                    .build());
    
            var exampleBandwidthPackageAttachment = new BandwidthPackageAttachment("exampleBandwidthPackageAttachment", BandwidthPackageAttachmentArgs.builder()        
                .instanceId(exampleInstance.id())
                .bandwidthPackageId(exampleBandwidthPackage.id())
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.bj())
                    .build());
    
            var exampleTransitRouter = new TransitRouter("exampleTransitRouter", TransitRouterArgs.builder()        
                .cenId(exampleBandwidthPackageAttachment.instanceId())
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.hz())
                    .build());
    
            var peer = new TransitRouter("peer", TransitRouterArgs.builder()        
                .cenId(exampleTransitRouter.cenId())
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.bj())
                    .build());
    
            var exampleTransitRouterPeerAttachment = new TransitRouterPeerAttachment("exampleTransitRouterPeerAttachment", TransitRouterPeerAttachmentArgs.builder()        
                .cenId(exampleInstance.id())
                .transitRouterId(exampleTransitRouter.transitRouterId())
                .peerTransitRouterRegionId(peerRegion)
                .peerTransitRouterId(peer.transitRouterId())
                .cenBandwidthPackageId(exampleBandwidthPackageAttachment.bandwidthPackageId())
                .bandwidth(5)
                .transitRouterAttachmentDescription(name)
                .transitRouterAttachmentName(name)
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.hz())
                    .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_example
      region:
        type: string
        default: cn-hangzhou
      peerRegion:
        type: string
        default: cn-beijing
    resources:
      hz:
        type: pulumi:providers:alicloud
        properties:
          region: ${region}
      bj:
        type: pulumi:providers:alicloud
        properties:
          region: ${peerRegion}
      exampleInstance:
        type: alicloud:cen:Instance
        properties:
          cenInstanceName: ${name}
          protectionLevel: REDUCED
        options:
          provider: ${alicloud.bj}
      exampleBandwidthPackage:
        type: alicloud:cen:BandwidthPackage
        properties:
          bandwidth: 5
          cenBandwidthPackageName: tf_example
          geographicRegionAId: China
          geographicRegionBId: China
        options:
          provider: ${alicloud.bj}
      exampleBandwidthPackageAttachment:
        type: alicloud:cen:BandwidthPackageAttachment
        properties:
          instanceId: ${exampleInstance.id}
          bandwidthPackageId: ${exampleBandwidthPackage.id}
        options:
          provider: ${alicloud.bj}
      exampleTransitRouter:
        type: alicloud:cen:TransitRouter
        properties:
          cenId: ${exampleBandwidthPackageAttachment.instanceId}
        options:
          provider: ${alicloud.hz}
      peer:
        type: alicloud:cen:TransitRouter
        properties:
          cenId: ${exampleTransitRouter.cenId}
        options:
          provider: ${alicloud.bj}
      exampleTransitRouterPeerAttachment:
        type: alicloud:cen:TransitRouterPeerAttachment
        properties:
          cenId: ${exampleInstance.id}
          transitRouterId: ${exampleTransitRouter.transitRouterId}
          peerTransitRouterRegionId: ${peerRegion}
          peerTransitRouterId: ${peer.transitRouterId}
          cenBandwidthPackageId: ${exampleBandwidthPackageAttachment.bandwidthPackageId}
          bandwidth: 5
          transitRouterAttachmentDescription: ${name}
          transitRouterAttachmentName: ${name}
        options:
          provider: ${alicloud.hz}
    

    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,
                                    cen_id: Optional[str] = None,
                                    peer_transit_router_region_id: Optional[str] = None,
                                    peer_transit_router_id: Optional[str] = None,
                                    cen_bandwidth_package_id: Optional[str] = None,
                                    auto_publish_route_enabled: Optional[bool] = None,
                                    dry_run: Optional[bool] = None,
                                    bandwidth_type: Optional[str] = None,
                                    bandwidth: Optional[int] = None,
                                    resource_type: Optional[str] = None,
                                    route_table_association_enabled: Optional[bool] = None,
                                    route_table_propagation_enabled: Optional[bool] = None,
                                    transit_router_attachment_description: Optional[str] = None,
                                    transit_router_attachment_name: Optional[str] = None,
                                    transit_router_id: 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.

    Example

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

    var transitRouterPeerAttachmentResource = new AliCloud.Cen.TransitRouterPeerAttachment("transitRouterPeerAttachmentResource", new()
    {
        CenId = "string",
        PeerTransitRouterRegionId = "string",
        PeerTransitRouterId = "string",
        CenBandwidthPackageId = "string",
        AutoPublishRouteEnabled = false,
        DryRun = false,
        BandwidthType = "string",
        Bandwidth = 0,
        ResourceType = "string",
        RouteTableAssociationEnabled = false,
        RouteTablePropagationEnabled = false,
        TransitRouterAttachmentDescription = "string",
        TransitRouterAttachmentName = "string",
        TransitRouterId = "string",
    });
    
    example, err := cen.NewTransitRouterPeerAttachment(ctx, "transitRouterPeerAttachmentResource", &cen.TransitRouterPeerAttachmentArgs{
    	CenId:                              pulumi.String("string"),
    	PeerTransitRouterRegionId:          pulumi.String("string"),
    	PeerTransitRouterId:                pulumi.String("string"),
    	CenBandwidthPackageId:              pulumi.String("string"),
    	AutoPublishRouteEnabled:            pulumi.Bool(false),
    	DryRun:                             pulumi.Bool(false),
    	BandwidthType:                      pulumi.String("string"),
    	Bandwidth:                          pulumi.Int(0),
    	ResourceType:                       pulumi.String("string"),
    	RouteTableAssociationEnabled:       pulumi.Bool(false),
    	RouteTablePropagationEnabled:       pulumi.Bool(false),
    	TransitRouterAttachmentDescription: pulumi.String("string"),
    	TransitRouterAttachmentName:        pulumi.String("string"),
    	TransitRouterId:                    pulumi.String("string"),
    })
    
    var transitRouterPeerAttachmentResource = new TransitRouterPeerAttachment("transitRouterPeerAttachmentResource", TransitRouterPeerAttachmentArgs.builder()        
        .cenId("string")
        .peerTransitRouterRegionId("string")
        .peerTransitRouterId("string")
        .cenBandwidthPackageId("string")
        .autoPublishRouteEnabled(false)
        .dryRun(false)
        .bandwidthType("string")
        .bandwidth(0)
        .resourceType("string")
        .routeTableAssociationEnabled(false)
        .routeTablePropagationEnabled(false)
        .transitRouterAttachmentDescription("string")
        .transitRouterAttachmentName("string")
        .transitRouterId("string")
        .build());
    
    transit_router_peer_attachment_resource = alicloud.cen.TransitRouterPeerAttachment("transitRouterPeerAttachmentResource",
        cen_id="string",
        peer_transit_router_region_id="string",
        peer_transit_router_id="string",
        cen_bandwidth_package_id="string",
        auto_publish_route_enabled=False,
        dry_run=False,
        bandwidth_type="string",
        bandwidth=0,
        resource_type="string",
        route_table_association_enabled=False,
        route_table_propagation_enabled=False,
        transit_router_attachment_description="string",
        transit_router_attachment_name="string",
        transit_router_id="string")
    
    const transitRouterPeerAttachmentResource = new alicloud.cen.TransitRouterPeerAttachment("transitRouterPeerAttachmentResource", {
        cenId: "string",
        peerTransitRouterRegionId: "string",
        peerTransitRouterId: "string",
        cenBandwidthPackageId: "string",
        autoPublishRouteEnabled: false,
        dryRun: false,
        bandwidthType: "string",
        bandwidth: 0,
        resourceType: "string",
        routeTableAssociationEnabled: false,
        routeTablePropagationEnabled: false,
        transitRouterAttachmentDescription: "string",
        transitRouterAttachmentName: "string",
        transitRouterId: "string",
    });
    
    type: alicloud:cen:TransitRouterPeerAttachment
    properties:
        autoPublishRouteEnabled: false
        bandwidth: 0
        bandwidthType: string
        cenBandwidthPackageId: string
        cenId: string
        dryRun: false
        peerTransitRouterId: string
        peerTransitRouterRegionId: string
        resourceType: string
        routeTableAssociationEnabled: false
        routeTablePropagationEnabled: false
        transitRouterAttachmentDescription: string
        transitRouterAttachmentName: string
        transitRouterId: 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

    The TransitRouterPeerAttachment resource accepts the following input properties:

    CenId string
    The ID of the CEN.
    PeerTransitRouterId string
    The ID of the peer transit router.
    PeerTransitRouterRegionId string
    The region ID of peer transit router.
    AutoPublishRouteEnabled bool
    Auto publish route enabled. The system default value is false.
    Bandwidth int
    The bandwidth of the bandwidth package.
    BandwidthType string
    The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.
    CenBandwidthPackageId string
    The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
    DryRun bool
    Whether to perform pre-check for this request, including permission, instance status verification, etc.
    ResourceType string
    The resource type to attachment. Only support VR and default value is VR.
    RouteTableAssociationEnabled bool
    Whether to association route table. System default is false.
    RouteTablePropagationEnabled bool
    Whether to propagation route table. System default is false.
    TransitRouterAttachmentDescription string
    The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.
    TransitRouterAttachmentName string
    The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
    TransitRouterId string
    The ID of the transit router to attach.
    CenId string
    The ID of the CEN.
    PeerTransitRouterId string
    The ID of the peer transit router.
    PeerTransitRouterRegionId string
    The region ID of peer transit router.
    AutoPublishRouteEnabled bool
    Auto publish route enabled. The system default value is false.
    Bandwidth int
    The bandwidth of the bandwidth package.
    BandwidthType string
    The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.
    CenBandwidthPackageId string
    The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
    DryRun bool
    Whether to perform pre-check for this request, including permission, instance status verification, etc.
    ResourceType string
    The resource type to attachment. Only support VR and default value is VR.
    RouteTableAssociationEnabled bool
    Whether to association route table. System default is false.
    RouteTablePropagationEnabled bool
    Whether to propagation route table. System default is false.
    TransitRouterAttachmentDescription string
    The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.
    TransitRouterAttachmentName string
    The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
    TransitRouterId string
    The ID of the transit router to attach.
    cenId String
    The ID of the CEN.
    peerTransitRouterId String
    The ID of the peer transit router.
    peerTransitRouterRegionId String
    The region ID of peer transit router.
    autoPublishRouteEnabled Boolean
    Auto publish route enabled. The system default value is false.
    bandwidth Integer
    The bandwidth of the bandwidth package.
    bandwidthType String
    The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.
    cenBandwidthPackageId String
    The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
    dryRun Boolean
    Whether to perform pre-check for this request, including permission, instance status verification, etc.
    resourceType String
    The resource type to attachment. Only support VR and default value is VR.
    routeTableAssociationEnabled Boolean
    Whether to association route table. System default is false.
    routeTablePropagationEnabled Boolean
    Whether to propagation route table. System default is false.
    transitRouterAttachmentDescription String
    The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.
    transitRouterAttachmentName String
    The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
    transitRouterId String
    The ID of the transit router to attach.
    cenId string
    The ID of the CEN.
    peerTransitRouterId string
    The ID of the peer transit router.
    peerTransitRouterRegionId string
    The region ID of peer transit router.
    autoPublishRouteEnabled boolean
    Auto publish route enabled. The system default value is false.
    bandwidth number
    The bandwidth of the bandwidth package.
    bandwidthType string
    The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.
    cenBandwidthPackageId string
    The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
    dryRun boolean
    Whether to perform pre-check for this request, including permission, instance status verification, etc.
    resourceType string
    The resource type to attachment. Only support VR and default value is VR.
    routeTableAssociationEnabled boolean
    Whether to association route table. System default is false.
    routeTablePropagationEnabled boolean
    Whether to propagation route table. System default is false.
    transitRouterAttachmentDescription string
    The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.
    transitRouterAttachmentName string
    The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
    transitRouterId string
    The ID of the transit router to attach.
    cen_id str
    The ID of the CEN.
    peer_transit_router_id str
    The ID of the peer transit router.
    peer_transit_router_region_id str
    The region ID of peer transit router.
    auto_publish_route_enabled bool
    Auto publish route enabled. The system default value is false.
    bandwidth int
    The bandwidth of the bandwidth package.
    bandwidth_type str
    The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.
    cen_bandwidth_package_id str
    The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
    dry_run bool
    Whether to perform pre-check for this request, including permission, instance status verification, etc.
    resource_type str
    The resource type to attachment. Only support VR and default value is VR.
    route_table_association_enabled bool
    Whether to association route table. System default is false.
    route_table_propagation_enabled bool
    Whether to propagation route table. System default is false.
    transit_router_attachment_description str
    The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.
    transit_router_attachment_name str
    The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
    transit_router_id str
    The ID of the transit router to attach.
    cenId String
    The ID of the CEN.
    peerTransitRouterId String
    The ID of the peer transit router.
    peerTransitRouterRegionId String
    The region ID of peer transit router.
    autoPublishRouteEnabled Boolean
    Auto publish route enabled. The system default value is false.
    bandwidth Number
    The bandwidth of the bandwidth package.
    bandwidthType String
    The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.
    cenBandwidthPackageId String
    The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
    dryRun Boolean
    Whether to perform pre-check for this request, including permission, instance status verification, etc.
    resourceType String
    The resource type to attachment. Only support VR and default value is VR.
    routeTableAssociationEnabled Boolean
    Whether to association route table. System default is false.
    routeTablePropagationEnabled Boolean
    Whether to propagation route table. System default is false.
    transitRouterAttachmentDescription String
    The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.
    transitRouterAttachmentName String
    The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
    transitRouterId String
    The ID of the transit router to attach.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The associating status of the network.
    TransitRouterAttachmentId string
    The ID of transit router attachment id.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The associating status of the network.
    TransitRouterAttachmentId string
    The ID of transit router attachment id.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The associating status of the network.
    transitRouterAttachmentId String
    The ID of transit router attachment id.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The associating status of the network.
    transitRouterAttachmentId string
    The ID of transit router attachment id.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The associating status of the network.
    transit_router_attachment_id str
    The ID of transit router attachment id.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The associating status of the network.
    transitRouterAttachmentId String
    The ID of transit router attachment id.

    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,
            dry_run: Optional[bool] = None,
            peer_transit_router_id: Optional[str] = None,
            peer_transit_router_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,
            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) -> 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)
    Resource lookup is not supported in YAML
    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
    Auto publish route enabled. The system default value is false.
    Bandwidth int
    The bandwidth of the bandwidth package.
    BandwidthType string
    The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.
    CenBandwidthPackageId string
    The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
    CenId string
    The ID of the CEN.
    DryRun bool
    Whether to perform pre-check for this request, including permission, instance status verification, etc.
    PeerTransitRouterId string
    The ID of the peer transit router.
    PeerTransitRouterRegionId string
    The region ID of peer transit router.
    ResourceType string
    The resource type to attachment. Only support VR and default value is VR.
    RouteTableAssociationEnabled bool
    Whether to association route table. System default is false.
    RouteTablePropagationEnabled bool
    Whether to propagation route table. System default is false.
    Status string
    The associating status of the network.
    TransitRouterAttachmentDescription string
    The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.
    TransitRouterAttachmentId string
    The ID of transit router attachment id.
    TransitRouterAttachmentName string
    The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
    TransitRouterId string
    The ID of the transit router to attach.
    AutoPublishRouteEnabled bool
    Auto publish route enabled. The system default value is false.
    Bandwidth int
    The bandwidth of the bandwidth package.
    BandwidthType string
    The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.
    CenBandwidthPackageId string
    The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
    CenId string
    The ID of the CEN.
    DryRun bool
    Whether to perform pre-check for this request, including permission, instance status verification, etc.
    PeerTransitRouterId string
    The ID of the peer transit router.
    PeerTransitRouterRegionId string
    The region ID of peer transit router.
    ResourceType string
    The resource type to attachment. Only support VR and default value is VR.
    RouteTableAssociationEnabled bool
    Whether to association route table. System default is false.
    RouteTablePropagationEnabled bool
    Whether to propagation route table. System default is false.
    Status string
    The associating status of the network.
    TransitRouterAttachmentDescription string
    The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.
    TransitRouterAttachmentId string
    The ID of transit router attachment id.
    TransitRouterAttachmentName string
    The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
    TransitRouterId string
    The ID of the transit router to attach.
    autoPublishRouteEnabled Boolean
    Auto publish route enabled. The system default value is false.
    bandwidth Integer
    The bandwidth of the bandwidth package.
    bandwidthType String
    The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.
    cenBandwidthPackageId String
    The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
    cenId String
    The ID of the CEN.
    dryRun Boolean
    Whether to perform pre-check for this request, including permission, instance status verification, etc.
    peerTransitRouterId String
    The ID of the peer transit router.
    peerTransitRouterRegionId String
    The region ID of peer transit router.
    resourceType String
    The resource type to attachment. Only support VR and default value is VR.
    routeTableAssociationEnabled Boolean
    Whether to association route table. System default is false.
    routeTablePropagationEnabled Boolean
    Whether to propagation route table. System default is false.
    status String
    The associating status of the network.
    transitRouterAttachmentDescription String
    The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.
    transitRouterAttachmentId String
    The ID of transit router attachment id.
    transitRouterAttachmentName String
    The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
    transitRouterId String
    The ID of the transit router to attach.
    autoPublishRouteEnabled boolean
    Auto publish route enabled. The system default value is false.
    bandwidth number
    The bandwidth of the bandwidth package.
    bandwidthType string
    The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.
    cenBandwidthPackageId string
    The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
    cenId string
    The ID of the CEN.
    dryRun boolean
    Whether to perform pre-check for this request, including permission, instance status verification, etc.
    peerTransitRouterId string
    The ID of the peer transit router.
    peerTransitRouterRegionId string
    The region ID of peer transit router.
    resourceType string
    The resource type to attachment. Only support VR and default value is VR.
    routeTableAssociationEnabled boolean
    Whether to association route table. System default is false.
    routeTablePropagationEnabled boolean
    Whether to propagation route table. System default is false.
    status string
    The associating status of the network.
    transitRouterAttachmentDescription string
    The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.
    transitRouterAttachmentId string
    The ID of transit router attachment id.
    transitRouterAttachmentName string
    The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
    transitRouterId string
    The ID of the transit router to attach.
    auto_publish_route_enabled bool
    Auto publish route enabled. The system default value is false.
    bandwidth int
    The bandwidth of the bandwidth package.
    bandwidth_type str
    The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.
    cen_bandwidth_package_id str
    The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
    cen_id str
    The ID of the CEN.
    dry_run bool
    Whether to perform pre-check for this request, including permission, instance status verification, etc.
    peer_transit_router_id str
    The ID of the peer transit router.
    peer_transit_router_region_id str
    The region ID of peer transit router.
    resource_type str
    The resource type to attachment. Only support VR and default value is VR.
    route_table_association_enabled bool
    Whether to association route table. System default is false.
    route_table_propagation_enabled bool
    Whether to propagation route table. System default is false.
    status str
    The associating status of the network.
    transit_router_attachment_description str
    The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.
    transit_router_attachment_id str
    The ID of transit router attachment id.
    transit_router_attachment_name str
    The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
    transit_router_id str
    The ID of the transit router to attach.
    autoPublishRouteEnabled Boolean
    Auto publish route enabled. The system default value is false.
    bandwidth Number
    The bandwidth of the bandwidth package.
    bandwidthType String
    The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.
    cenBandwidthPackageId String
    The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
    cenId String
    The ID of the CEN.
    dryRun Boolean
    Whether to perform pre-check for this request, including permission, instance status verification, etc.
    peerTransitRouterId String
    The ID of the peer transit router.
    peerTransitRouterRegionId String
    The region ID of peer transit router.
    resourceType String
    The resource type to attachment. Only support VR and default value is VR.
    routeTableAssociationEnabled Boolean
    Whether to association route table. System default is false.
    routeTablePropagationEnabled Boolean
    Whether to propagation route table. System default is false.
    status String
    The associating status of the network.
    transitRouterAttachmentDescription String
    The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.
    transitRouterAttachmentId String
    The ID of transit router attachment id.
    transitRouterAttachmentName String
    The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
    transitRouterId String
    The ID of the transit router to attach.

    Import

    CEN instance can be imported using the id, e.g.

    $ pulumi import alicloud:cen/transitRouterPeerAttachment:TransitRouterPeerAttachment example tr-********:tr-attach-*******
    

    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.53.0 published on Wednesday, Apr 17, 2024 by Pulumi