1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cen
  5. TransitRouterVbrAttachment
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.cen.TransitRouterVbrAttachment

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

    Provides a CEN transit router VBR attachment resource that associate the VBR with the CEN instance.What is Cen Transit Router VBR Attachment

    NOTE: Available since v1.126.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") || "terraform-example";
    const _default = new alicloud.cen.Instance("default", {
        cenInstanceName: name,
        protectionLevel: "REDUCED",
    });
    const defaultTransitRouter = new alicloud.cen.TransitRouter("default", {cenId: _default.id});
    const nameRegex = alicloud.expressconnect.getPhysicalConnections({
        nameRegex: "^preserved-NODELETING",
    });
    const defaultVirtualBorderRouter = new alicloud.expressconnect.VirtualBorderRouter("default", {
        localGatewayIp: "10.0.0.1",
        peerGatewayIp: "10.0.0.2",
        peeringSubnetMask: "255.255.255.252",
        physicalConnectionId: nameRegex.then(nameRegex => nameRegex.connections?.[0]?.id),
        virtualBorderRouterName: name,
        vlanId: 2420,
        minRxInterval: 1000,
        minTxInterval: 1000,
        detectMultiplier: 10,
    });
    const defaultTransitRouterVbrAttachment = new alicloud.cen.TransitRouterVbrAttachment("default", {
        transitRouterId: defaultTransitRouter.transitRouterId,
        transitRouterAttachmentName: "example",
        transitRouterAttachmentDescription: "example",
        vbrId: defaultVirtualBorderRouter.id,
        cenId: _default.id,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.cen.Instance("default",
        cen_instance_name=name,
        protection_level="REDUCED")
    default_transit_router = alicloud.cen.TransitRouter("default", cen_id=default.id)
    name_regex = alicloud.expressconnect.get_physical_connections(name_regex="^preserved-NODELETING")
    default_virtual_border_router = alicloud.expressconnect.VirtualBorderRouter("default",
        local_gateway_ip="10.0.0.1",
        peer_gateway_ip="10.0.0.2",
        peering_subnet_mask="255.255.255.252",
        physical_connection_id=name_regex.connections[0].id,
        virtual_border_router_name=name,
        vlan_id=2420,
        min_rx_interval=1000,
        min_tx_interval=1000,
        detect_multiplier=10)
    default_transit_router_vbr_attachment = alicloud.cen.TransitRouterVbrAttachment("default",
        transit_router_id=default_transit_router.transit_router_id,
        transit_router_attachment_name="example",
        transit_router_attachment_description="example",
        vbr_id=default_virtual_border_router.id,
        cen_id=default.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/expressconnect"
    	"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 := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := cen.NewInstance(ctx, "default", &cen.InstanceArgs{
    			CenInstanceName: pulumi.String(name),
    			ProtectionLevel: pulumi.String("REDUCED"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultTransitRouter, err := cen.NewTransitRouter(ctx, "default", &cen.TransitRouterArgs{
    			CenId: _default.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		nameRegex, err := expressconnect.GetPhysicalConnections(ctx, &expressconnect.GetPhysicalConnectionsArgs{
    			NameRegex: pulumi.StringRef("^preserved-NODELETING"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultVirtualBorderRouter, err := expressconnect.NewVirtualBorderRouter(ctx, "default", &expressconnect.VirtualBorderRouterArgs{
    			LocalGatewayIp:          pulumi.String("10.0.0.1"),
    			PeerGatewayIp:           pulumi.String("10.0.0.2"),
    			PeeringSubnetMask:       pulumi.String("255.255.255.252"),
    			PhysicalConnectionId:    pulumi.String(nameRegex.Connections[0].Id),
    			VirtualBorderRouterName: pulumi.String(name),
    			VlanId:                  pulumi.Int(2420),
    			MinRxInterval:           pulumi.Int(1000),
    			MinTxInterval:           pulumi.Int(1000),
    			DetectMultiplier:        pulumi.Int(10),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewTransitRouterVbrAttachment(ctx, "default", &cen.TransitRouterVbrAttachmentArgs{
    			TransitRouterId:                    defaultTransitRouter.TransitRouterId,
    			TransitRouterAttachmentName:        pulumi.String("example"),
    			TransitRouterAttachmentDescription: pulumi.String("example"),
    			VbrId:                              defaultVirtualBorderRouter.ID(),
    			CenId:                              _default.ID(),
    		})
    		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") ?? "terraform-example";
        var @default = new AliCloud.Cen.Instance("default", new()
        {
            CenInstanceName = name,
            ProtectionLevel = "REDUCED",
        });
    
        var defaultTransitRouter = new AliCloud.Cen.TransitRouter("default", new()
        {
            CenId = @default.Id,
        });
    
        var nameRegex = AliCloud.ExpressConnect.GetPhysicalConnections.Invoke(new()
        {
            NameRegex = "^preserved-NODELETING",
        });
    
        var defaultVirtualBorderRouter = new AliCloud.ExpressConnect.VirtualBorderRouter("default", new()
        {
            LocalGatewayIp = "10.0.0.1",
            PeerGatewayIp = "10.0.0.2",
            PeeringSubnetMask = "255.255.255.252",
            PhysicalConnectionId = nameRegex.Apply(getPhysicalConnectionsResult => getPhysicalConnectionsResult.Connections[0]?.Id),
            VirtualBorderRouterName = name,
            VlanId = 2420,
            MinRxInterval = 1000,
            MinTxInterval = 1000,
            DetectMultiplier = 10,
        });
    
        var defaultTransitRouterVbrAttachment = new AliCloud.Cen.TransitRouterVbrAttachment("default", new()
        {
            TransitRouterId = defaultTransitRouter.TransitRouterId,
            TransitRouterAttachmentName = "example",
            TransitRouterAttachmentDescription = "example",
            VbrId = defaultVirtualBorderRouter.Id,
            CenId = @default.Id,
        });
    
    });
    
    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.TransitRouter;
    import com.pulumi.alicloud.cen.TransitRouterArgs;
    import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
    import com.pulumi.alicloud.expressconnect.inputs.GetPhysicalConnectionsArgs;
    import com.pulumi.alicloud.expressconnect.VirtualBorderRouter;
    import com.pulumi.alicloud.expressconnect.VirtualBorderRouterArgs;
    import com.pulumi.alicloud.cen.TransitRouterVbrAttachment;
    import com.pulumi.alicloud.cen.TransitRouterVbrAttachmentArgs;
    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("terraform-example");
            var default_ = new Instance("default", InstanceArgs.builder()        
                .cenInstanceName(name)
                .protectionLevel("REDUCED")
                .build());
    
            var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()        
                .cenId(default_.id())
                .build());
    
            final var nameRegex = ExpressconnectFunctions.getPhysicalConnections(GetPhysicalConnectionsArgs.builder()
                .nameRegex("^preserved-NODELETING")
                .build());
    
            var defaultVirtualBorderRouter = new VirtualBorderRouter("defaultVirtualBorderRouter", VirtualBorderRouterArgs.builder()        
                .localGatewayIp("10.0.0.1")
                .peerGatewayIp("10.0.0.2")
                .peeringSubnetMask("255.255.255.252")
                .physicalConnectionId(nameRegex.applyValue(getPhysicalConnectionsResult -> getPhysicalConnectionsResult.connections()[0].id()))
                .virtualBorderRouterName(name)
                .vlanId(2420)
                .minRxInterval(1000)
                .minTxInterval(1000)
                .detectMultiplier(10)
                .build());
    
            var defaultTransitRouterVbrAttachment = new TransitRouterVbrAttachment("defaultTransitRouterVbrAttachment", TransitRouterVbrAttachmentArgs.builder()        
                .transitRouterId(defaultTransitRouter.transitRouterId())
                .transitRouterAttachmentName("example")
                .transitRouterAttachmentDescription("example")
                .vbrId(defaultVirtualBorderRouter.id())
                .cenId(default_.id())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:cen:Instance
        properties:
          cenInstanceName: ${name}
          protectionLevel: REDUCED
      defaultTransitRouter:
        type: alicloud:cen:TransitRouter
        name: default
        properties:
          cenId: ${default.id}
      defaultVirtualBorderRouter:
        type: alicloud:expressconnect:VirtualBorderRouter
        name: default
        properties:
          localGatewayIp: 10.0.0.1
          peerGatewayIp: 10.0.0.2
          peeringSubnetMask: 255.255.255.252
          physicalConnectionId: ${nameRegex.connections[0].id}
          virtualBorderRouterName: ${name}
          vlanId: 2420
          minRxInterval: 1000
          minTxInterval: 1000
          detectMultiplier: 10
      defaultTransitRouterVbrAttachment:
        type: alicloud:cen:TransitRouterVbrAttachment
        name: default
        properties:
          transitRouterId: ${defaultTransitRouter.transitRouterId}
          transitRouterAttachmentName: example
          transitRouterAttachmentDescription: example
          vbrId: ${defaultVirtualBorderRouter.id}
          cenId: ${default.id}
    variables:
      nameRegex:
        fn::invoke:
          Function: alicloud:expressconnect:getPhysicalConnections
          Arguments:
            nameRegex: ^preserved-NODELETING
    

    Create TransitRouterVbrAttachment Resource

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

    Constructor syntax

    new TransitRouterVbrAttachment(name: string, args: TransitRouterVbrAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def TransitRouterVbrAttachment(resource_name: str,
                                   args: TransitRouterVbrAttachmentArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def TransitRouterVbrAttachment(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   cen_id: Optional[str] = None,
                                   vbr_id: Optional[str] = None,
                                   auto_publish_route_enabled: Optional[bool] = None,
                                   dry_run: Optional[bool] = None,
                                   resource_type: Optional[str] = None,
                                   route_table_association_enabled: Optional[bool] = None,
                                   route_table_propagation_enabled: Optional[bool] = None,
                                   tags: Optional[Mapping[str, Any]] = None,
                                   transit_router_attachment_description: Optional[str] = None,
                                   transit_router_attachment_name: Optional[str] = None,
                                   transit_router_id: Optional[str] = None,
                                   vbr_owner_id: Optional[str] = None)
    func NewTransitRouterVbrAttachment(ctx *Context, name string, args TransitRouterVbrAttachmentArgs, opts ...ResourceOption) (*TransitRouterVbrAttachment, error)
    public TransitRouterVbrAttachment(string name, TransitRouterVbrAttachmentArgs args, CustomResourceOptions? opts = null)
    public TransitRouterVbrAttachment(String name, TransitRouterVbrAttachmentArgs args)
    public TransitRouterVbrAttachment(String name, TransitRouterVbrAttachmentArgs args, CustomResourceOptions options)
    
    type: alicloud:cen:TransitRouterVbrAttachment
    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 TransitRouterVbrAttachmentArgs
    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 TransitRouterVbrAttachmentArgs
    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 TransitRouterVbrAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TransitRouterVbrAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TransitRouterVbrAttachmentArgs
    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 transitRouterVbrAttachmentResource = new AliCloud.Cen.TransitRouterVbrAttachment("transitRouterVbrAttachmentResource", new()
    {
        CenId = "string",
        VbrId = "string",
        AutoPublishRouteEnabled = false,
        DryRun = false,
        ResourceType = "string",
        RouteTableAssociationEnabled = false,
        RouteTablePropagationEnabled = false,
        Tags = 
        {
            { "string", "any" },
        },
        TransitRouterAttachmentDescription = "string",
        TransitRouterAttachmentName = "string",
        TransitRouterId = "string",
        VbrOwnerId = "string",
    });
    
    example, err := cen.NewTransitRouterVbrAttachment(ctx, "transitRouterVbrAttachmentResource", &cen.TransitRouterVbrAttachmentArgs{
    	CenId:                        pulumi.String("string"),
    	VbrId:                        pulumi.String("string"),
    	AutoPublishRouteEnabled:      pulumi.Bool(false),
    	DryRun:                       pulumi.Bool(false),
    	ResourceType:                 pulumi.String("string"),
    	RouteTableAssociationEnabled: pulumi.Bool(false),
    	RouteTablePropagationEnabled: pulumi.Bool(false),
    	Tags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	TransitRouterAttachmentDescription: pulumi.String("string"),
    	TransitRouterAttachmentName:        pulumi.String("string"),
    	TransitRouterId:                    pulumi.String("string"),
    	VbrOwnerId:                         pulumi.String("string"),
    })
    
    var transitRouterVbrAttachmentResource = new TransitRouterVbrAttachment("transitRouterVbrAttachmentResource", TransitRouterVbrAttachmentArgs.builder()        
        .cenId("string")
        .vbrId("string")
        .autoPublishRouteEnabled(false)
        .dryRun(false)
        .resourceType("string")
        .routeTableAssociationEnabled(false)
        .routeTablePropagationEnabled(false)
        .tags(Map.of("string", "any"))
        .transitRouterAttachmentDescription("string")
        .transitRouterAttachmentName("string")
        .transitRouterId("string")
        .vbrOwnerId("string")
        .build());
    
    transit_router_vbr_attachment_resource = alicloud.cen.TransitRouterVbrAttachment("transitRouterVbrAttachmentResource",
        cen_id="string",
        vbr_id="string",
        auto_publish_route_enabled=False,
        dry_run=False,
        resource_type="string",
        route_table_association_enabled=False,
        route_table_propagation_enabled=False,
        tags={
            "string": "any",
        },
        transit_router_attachment_description="string",
        transit_router_attachment_name="string",
        transit_router_id="string",
        vbr_owner_id="string")
    
    const transitRouterVbrAttachmentResource = new alicloud.cen.TransitRouterVbrAttachment("transitRouterVbrAttachmentResource", {
        cenId: "string",
        vbrId: "string",
        autoPublishRouteEnabled: false,
        dryRun: false,
        resourceType: "string",
        routeTableAssociationEnabled: false,
        routeTablePropagationEnabled: false,
        tags: {
            string: "any",
        },
        transitRouterAttachmentDescription: "string",
        transitRouterAttachmentName: "string",
        transitRouterId: "string",
        vbrOwnerId: "string",
    });
    
    type: alicloud:cen:TransitRouterVbrAttachment
    properties:
        autoPublishRouteEnabled: false
        cenId: string
        dryRun: false
        resourceType: string
        routeTableAssociationEnabled: false
        routeTablePropagationEnabled: false
        tags:
            string: any
        transitRouterAttachmentDescription: string
        transitRouterAttachmentName: string
        transitRouterId: string
        vbrId: string
        vbrOwnerId: string
    

    TransitRouterVbrAttachment 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 TransitRouterVbrAttachment resource accepts the following input properties:

    CenId string
    The ID of the CEN.
    VbrId string
    The ID of the VBR.
    AutoPublishRouteEnabled bool
    Auto publish route enabled.Default value is false.
    DryRun bool
    The dry run.
    ResourceType string

    The resource type of the transit router vbr attachment. Valid values: VPC, CCN, VBR, TR.

    ->NOTE: Ensure that the vbr is not used in Express Connect.

    RouteTableAssociationEnabled bool
    Whether to enabled route table association. The system default value is true.
    RouteTablePropagationEnabled bool
    Whether to enabled route table propagation. The system default value is true.
    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.
    TransitRouterAttachmentDescription string
    The description of the transit router vbr attachment.
    TransitRouterAttachmentName string
    The name of the transit router vbr attachment.
    TransitRouterId string
    The ID of the transit router.
    VbrOwnerId string
    The owner id of the transit router vbr attachment.
    CenId string
    The ID of the CEN.
    VbrId string
    The ID of the VBR.
    AutoPublishRouteEnabled bool
    Auto publish route enabled.Default value is false.
    DryRun bool
    The dry run.
    ResourceType string

    The resource type of the transit router vbr attachment. Valid values: VPC, CCN, VBR, TR.

    ->NOTE: Ensure that the vbr is not used in Express Connect.

    RouteTableAssociationEnabled bool
    Whether to enabled route table association. The system default value is true.
    RouteTablePropagationEnabled bool
    Whether to enabled route table propagation. The system default value is true.
    Tags map[string]interface{}
    A mapping of tags to assign to the resource.
    TransitRouterAttachmentDescription string
    The description of the transit router vbr attachment.
    TransitRouterAttachmentName string
    The name of the transit router vbr attachment.
    TransitRouterId string
    The ID of the transit router.
    VbrOwnerId string
    The owner id of the transit router vbr attachment.
    cenId String
    The ID of the CEN.
    vbrId String
    The ID of the VBR.
    autoPublishRouteEnabled Boolean
    Auto publish route enabled.Default value is false.
    dryRun Boolean
    The dry run.
    resourceType String

    The resource type of the transit router vbr attachment. Valid values: VPC, CCN, VBR, TR.

    ->NOTE: Ensure that the vbr is not used in Express Connect.

    routeTableAssociationEnabled Boolean
    Whether to enabled route table association. The system default value is true.
    routeTablePropagationEnabled Boolean
    Whether to enabled route table propagation. The system default value is true.
    tags Map<String,Object>
    A mapping of tags to assign to the resource.
    transitRouterAttachmentDescription String
    The description of the transit router vbr attachment.
    transitRouterAttachmentName String
    The name of the transit router vbr attachment.
    transitRouterId String
    The ID of the transit router.
    vbrOwnerId String
    The owner id of the transit router vbr attachment.
    cenId string
    The ID of the CEN.
    vbrId string
    The ID of the VBR.
    autoPublishRouteEnabled boolean
    Auto publish route enabled.Default value is false.
    dryRun boolean
    The dry run.
    resourceType string

    The resource type of the transit router vbr attachment. Valid values: VPC, CCN, VBR, TR.

    ->NOTE: Ensure that the vbr is not used in Express Connect.

    routeTableAssociationEnabled boolean
    Whether to enabled route table association. The system default value is true.
    routeTablePropagationEnabled boolean
    Whether to enabled route table propagation. The system default value is true.
    tags {[key: string]: any}
    A mapping of tags to assign to the resource.
    transitRouterAttachmentDescription string
    The description of the transit router vbr attachment.
    transitRouterAttachmentName string
    The name of the transit router vbr attachment.
    transitRouterId string
    The ID of the transit router.
    vbrOwnerId string
    The owner id of the transit router vbr attachment.
    cen_id str
    The ID of the CEN.
    vbr_id str
    The ID of the VBR.
    auto_publish_route_enabled bool
    Auto publish route enabled.Default value is false.
    dry_run bool
    The dry run.
    resource_type str

    The resource type of the transit router vbr attachment. Valid values: VPC, CCN, VBR, TR.

    ->NOTE: Ensure that the vbr is not used in Express Connect.

    route_table_association_enabled bool
    Whether to enabled route table association. The system default value is true.
    route_table_propagation_enabled bool
    Whether to enabled route table propagation. The system default value is true.
    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.
    transit_router_attachment_description str
    The description of the transit router vbr attachment.
    transit_router_attachment_name str
    The name of the transit router vbr attachment.
    transit_router_id str
    The ID of the transit router.
    vbr_owner_id str
    The owner id of the transit router vbr attachment.
    cenId String
    The ID of the CEN.
    vbrId String
    The ID of the VBR.
    autoPublishRouteEnabled Boolean
    Auto publish route enabled.Default value is false.
    dryRun Boolean
    The dry run.
    resourceType String

    The resource type of the transit router vbr attachment. Valid values: VPC, CCN, VBR, TR.

    ->NOTE: Ensure that the vbr is not used in Express Connect.

    routeTableAssociationEnabled Boolean
    Whether to enabled route table association. The system default value is true.
    routeTablePropagationEnabled Boolean
    Whether to enabled route table propagation. The system default value is true.
    tags Map<Any>
    A mapping of tags to assign to the resource.
    transitRouterAttachmentDescription String
    The description of the transit router vbr attachment.
    transitRouterAttachmentName String
    The name of the transit router vbr attachment.
    transitRouterId String
    The ID of the transit router.
    vbrOwnerId String
    The owner id of the transit router vbr attachment.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TransitRouterVbrAttachment 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 the transit router vbr attachment.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The associating status of the network.
    TransitRouterAttachmentId string
    The id of the transit router vbr attachment.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The associating status of the network.
    transitRouterAttachmentId String
    The id of the transit router vbr attachment.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The associating status of the network.
    transitRouterAttachmentId string
    The id of the transit router vbr attachment.
    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 the transit router vbr attachment.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The associating status of the network.
    transitRouterAttachmentId String
    The id of the transit router vbr attachment.

    Look up Existing TransitRouterVbrAttachment Resource

    Get an existing TransitRouterVbrAttachment 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?: TransitRouterVbrAttachmentState, opts?: CustomResourceOptions): TransitRouterVbrAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_publish_route_enabled: Optional[bool] = None,
            cen_id: Optional[str] = None,
            dry_run: Optional[bool] = 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, Any]] = 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,
            vbr_id: Optional[str] = None,
            vbr_owner_id: Optional[str] = None) -> TransitRouterVbrAttachment
    func GetTransitRouterVbrAttachment(ctx *Context, name string, id IDInput, state *TransitRouterVbrAttachmentState, opts ...ResourceOption) (*TransitRouterVbrAttachment, error)
    public static TransitRouterVbrAttachment Get(string name, Input<string> id, TransitRouterVbrAttachmentState? state, CustomResourceOptions? opts = null)
    public static TransitRouterVbrAttachment get(String name, Output<String> id, TransitRouterVbrAttachmentState 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.Default value is false.
    CenId string
    The ID of the CEN.
    DryRun bool
    The dry run.
    ResourceType string

    The resource type of the transit router vbr attachment. Valid values: VPC, CCN, VBR, TR.

    ->NOTE: Ensure that the vbr is not used in Express Connect.

    RouteTableAssociationEnabled bool
    Whether to enabled route table association. The system default value is true.
    RouteTablePropagationEnabled bool
    Whether to enabled route table propagation. The system default value is true.
    Status string
    The associating status of the network.
    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.
    TransitRouterAttachmentDescription string
    The description of the transit router vbr attachment.
    TransitRouterAttachmentId string
    The id of the transit router vbr attachment.
    TransitRouterAttachmentName string
    The name of the transit router vbr attachment.
    TransitRouterId string
    The ID of the transit router.
    VbrId string
    The ID of the VBR.
    VbrOwnerId string
    The owner id of the transit router vbr attachment.
    AutoPublishRouteEnabled bool
    Auto publish route enabled.Default value is false.
    CenId string
    The ID of the CEN.
    DryRun bool
    The dry run.
    ResourceType string

    The resource type of the transit router vbr attachment. Valid values: VPC, CCN, VBR, TR.

    ->NOTE: Ensure that the vbr is not used in Express Connect.

    RouteTableAssociationEnabled bool
    Whether to enabled route table association. The system default value is true.
    RouteTablePropagationEnabled bool
    Whether to enabled route table propagation. The system default value is true.
    Status string
    The associating status of the network.
    Tags map[string]interface{}
    A mapping of tags to assign to the resource.
    TransitRouterAttachmentDescription string
    The description of the transit router vbr attachment.
    TransitRouterAttachmentId string
    The id of the transit router vbr attachment.
    TransitRouterAttachmentName string
    The name of the transit router vbr attachment.
    TransitRouterId string
    The ID of the transit router.
    VbrId string
    The ID of the VBR.
    VbrOwnerId string
    The owner id of the transit router vbr attachment.
    autoPublishRouteEnabled Boolean
    Auto publish route enabled.Default value is false.
    cenId String
    The ID of the CEN.
    dryRun Boolean
    The dry run.
    resourceType String

    The resource type of the transit router vbr attachment. Valid values: VPC, CCN, VBR, TR.

    ->NOTE: Ensure that the vbr is not used in Express Connect.

    routeTableAssociationEnabled Boolean
    Whether to enabled route table association. The system default value is true.
    routeTablePropagationEnabled Boolean
    Whether to enabled route table propagation. The system default value is true.
    status String
    The associating status of the network.
    tags Map<String,Object>
    A mapping of tags to assign to the resource.
    transitRouterAttachmentDescription String
    The description of the transit router vbr attachment.
    transitRouterAttachmentId String
    The id of the transit router vbr attachment.
    transitRouterAttachmentName String
    The name of the transit router vbr attachment.
    transitRouterId String
    The ID of the transit router.
    vbrId String
    The ID of the VBR.
    vbrOwnerId String
    The owner id of the transit router vbr attachment.
    autoPublishRouteEnabled boolean
    Auto publish route enabled.Default value is false.
    cenId string
    The ID of the CEN.
    dryRun boolean
    The dry run.
    resourceType string

    The resource type of the transit router vbr attachment. Valid values: VPC, CCN, VBR, TR.

    ->NOTE: Ensure that the vbr is not used in Express Connect.

    routeTableAssociationEnabled boolean
    Whether to enabled route table association. The system default value is true.
    routeTablePropagationEnabled boolean
    Whether to enabled route table propagation. The system default value is true.
    status string
    The associating status of the network.
    tags {[key: string]: any}
    A mapping of tags to assign to the resource.
    transitRouterAttachmentDescription string
    The description of the transit router vbr attachment.
    transitRouterAttachmentId string
    The id of the transit router vbr attachment.
    transitRouterAttachmentName string
    The name of the transit router vbr attachment.
    transitRouterId string
    The ID of the transit router.
    vbrId string
    The ID of the VBR.
    vbrOwnerId string
    The owner id of the transit router vbr attachment.
    auto_publish_route_enabled bool
    Auto publish route enabled.Default value is false.
    cen_id str
    The ID of the CEN.
    dry_run bool
    The dry run.
    resource_type str

    The resource type of the transit router vbr attachment. Valid values: VPC, CCN, VBR, TR.

    ->NOTE: Ensure that the vbr is not used in Express Connect.

    route_table_association_enabled bool
    Whether to enabled route table association. The system default value is true.
    route_table_propagation_enabled bool
    Whether to enabled route table propagation. The system default value is true.
    status str
    The associating status of the network.
    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.
    transit_router_attachment_description str
    The description of the transit router vbr attachment.
    transit_router_attachment_id str
    The id of the transit router vbr attachment.
    transit_router_attachment_name str
    The name of the transit router vbr attachment.
    transit_router_id str
    The ID of the transit router.
    vbr_id str
    The ID of the VBR.
    vbr_owner_id str
    The owner id of the transit router vbr attachment.
    autoPublishRouteEnabled Boolean
    Auto publish route enabled.Default value is false.
    cenId String
    The ID of the CEN.
    dryRun Boolean
    The dry run.
    resourceType String

    The resource type of the transit router vbr attachment. Valid values: VPC, CCN, VBR, TR.

    ->NOTE: Ensure that the vbr is not used in Express Connect.

    routeTableAssociationEnabled Boolean
    Whether to enabled route table association. The system default value is true.
    routeTablePropagationEnabled Boolean
    Whether to enabled route table propagation. The system default value is true.
    status String
    The associating status of the network.
    tags Map<Any>
    A mapping of tags to assign to the resource.
    transitRouterAttachmentDescription String
    The description of the transit router vbr attachment.
    transitRouterAttachmentId String
    The id of the transit router vbr attachment.
    transitRouterAttachmentName String
    The name of the transit router vbr attachment.
    transitRouterId String
    The ID of the transit router.
    vbrId String
    The ID of the VBR.
    vbrOwnerId String
    The owner id of the transit router vbr attachment.

    Import

    CEN transit router VBR attachment can be imported using the id, e.g.

    $ pulumi import alicloud:cen/transitRouterVbrAttachment:TransitRouterVbrAttachment 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.54.0 published on Wednesday, Apr 24, 2024 by Pulumi