1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cen
  5. TransitRouterVbrAttachment
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.cen.TransitRouterVbrAttachment

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

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

    For information about Cloud Enterprise Network (CEN) Transit Router VBR Attachment and how to use it, see What is 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 nameRegex = alicloud.expressconnect.getPhysicalConnections({
        nameRegex: "^preserved-NODELETING",
    });
    const _default = new alicloud.cen.Instance("default", {
        cenInstanceName: name,
        protectionLevel: "REDUCED",
    });
    const defaultTransitRouter = new alicloud.cen.TransitRouter("default", {cenId: _default.id});
    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", {
        cenId: _default.id,
        vbrId: defaultVirtualBorderRouter.id,
        transitRouterId: defaultTransitRouter.transitRouterId,
        transitRouterAttachmentName: name,
        transitRouterAttachmentDescription: name,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    name_regex = alicloud.expressconnect.get_physical_connections(name_regex="^preserved-NODELETING")
    default = alicloud.cen.Instance("default",
        cen_instance_name=name,
        protection_level="REDUCED")
    default_transit_router = alicloud.cen.TransitRouter("default", cen_id=default.id)
    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",
        cen_id=default.id,
        vbr_id=default_virtual_border_router.id,
        transit_router_id=default_transit_router.transit_router_id,
        transit_router_attachment_name=name,
        transit_router_attachment_description=name)
    
    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
    		}
    		nameRegex, err := expressconnect.GetPhysicalConnections(ctx, &expressconnect.GetPhysicalConnectionsArgs{
    			NameRegex: pulumi.StringRef("^preserved-NODELETING"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, 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
    		}
    		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{
    			CenId:                              _default.ID(),
    			VbrId:                              defaultVirtualBorderRouter.ID(),
    			TransitRouterId:                    defaultTransitRouter.TransitRouterId,
    			TransitRouterAttachmentName:        pulumi.String(name),
    			TransitRouterAttachmentDescription: 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") ?? "terraform-example";
        var nameRegex = AliCloud.ExpressConnect.GetPhysicalConnections.Invoke(new()
        {
            NameRegex = "^preserved-NODELETING",
        });
    
        var @default = new AliCloud.Cen.Instance("default", new()
        {
            CenInstanceName = name,
            ProtectionLevel = "REDUCED",
        });
    
        var defaultTransitRouter = new AliCloud.Cen.TransitRouter("default", new()
        {
            CenId = @default.Id,
        });
    
        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()
        {
            CenId = @default.Id,
            VbrId = defaultVirtualBorderRouter.Id,
            TransitRouterId = defaultTransitRouter.TransitRouterId,
            TransitRouterAttachmentName = name,
            TransitRouterAttachmentDescription = name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
    import com.pulumi.alicloud.expressconnect.inputs.GetPhysicalConnectionsArgs;
    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.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");
            final var nameRegex = ExpressconnectFunctions.getPhysicalConnections(GetPhysicalConnectionsArgs.builder()
                .nameRegex("^preserved-NODELETING")
                .build());
    
            var default_ = new Instance("default", InstanceArgs.builder()
                .cenInstanceName(name)
                .protectionLevel("REDUCED")
                .build());
    
            var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()
                .cenId(default_.id())
                .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()
                .cenId(default_.id())
                .vbrId(defaultVirtualBorderRouter.id())
                .transitRouterId(defaultTransitRouter.transitRouterId())
                .transitRouterAttachmentName(name)
                .transitRouterAttachmentDescription(name)
                .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:
          cenId: ${default.id}
          vbrId: ${defaultVirtualBorderRouter.id}
          transitRouterId: ${defaultTransitRouter.transitRouterId}
          transitRouterAttachmentName: ${name}
          transitRouterAttachmentDescription: ${name}
    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, str]] = 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.

    Constructor 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",
        Tags = 
        {
            { "string", "string" },
        },
        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"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	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")
        .tags(Map.of("string", "string"))
        .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",
        tags={
            "string": "string",
        },
        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",
        tags: {
            string: "string",
        },
        transitRouterAttachmentDescription: "string",
        transitRouterAttachmentName: "string",
        transitRouterId: "string",
        vbrOwnerId: "string",
    });
    
    type: alicloud:cen:TransitRouterVbrAttachment
    properties:
        autoPublishRouteEnabled: false
        cenId: string
        dryRun: false
        resourceType: string
        tags:
            string: string
        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

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

    The TransitRouterVbrAttachment resource accepts the following input properties:

    CenId string
    The ID of the CEN.
    VbrId string
    The ID of the VBR.
    AutoPublishRouteEnabled bool
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value: false. Valid values:
    DryRun bool
    Specifies whether to perform a dry run. Default value: false. Valid values: true, false.
    ResourceType string
    The resource type of the transit router vbr attachment. Default value: VBR. Valid values: VBR.
    RouteTableAssociationEnabled bool
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    RouteTablePropagationEnabled bool

    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

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

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    Tags Dictionary<string, string>
    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 vbr.
    CenId string
    The ID of the CEN.
    VbrId string
    The ID of the VBR.
    AutoPublishRouteEnabled bool
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value: false. Valid values:
    DryRun bool
    Specifies whether to perform a dry run. Default value: false. Valid values: true, false.
    ResourceType string
    The resource type of the transit router vbr attachment. Default value: VBR. Valid values: VBR.
    RouteTableAssociationEnabled bool
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    RouteTablePropagationEnabled bool

    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

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

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    Tags map[string]string
    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 vbr.
    cenId String
    The ID of the CEN.
    vbrId String
    The ID of the VBR.
    autoPublishRouteEnabled Boolean
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value: false. Valid values:
    dryRun Boolean
    Specifies whether to perform a dry run. Default value: false. Valid values: true, false.
    resourceType String
    The resource type of the transit router vbr attachment. Default value: VBR. Valid values: VBR.
    routeTableAssociationEnabled Boolean
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    routeTablePropagationEnabled Boolean

    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

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

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    tags Map<String,String>
    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 vbr.
    cenId string
    The ID of the CEN.
    vbrId string
    The ID of the VBR.
    autoPublishRouteEnabled boolean
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value: false. Valid values:
    dryRun boolean
    Specifies whether to perform a dry run. Default value: false. Valid values: true, false.
    resourceType string
    The resource type of the transit router vbr attachment. Default value: VBR. Valid values: VBR.
    routeTableAssociationEnabled boolean
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    routeTablePropagationEnabled boolean

    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

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

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    tags {[key: string]: string}
    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 vbr.
    cen_id str
    The ID of the CEN.
    vbr_id str
    The ID of the VBR.
    auto_publish_route_enabled bool
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value: false. Valid values:
    dry_run bool
    Specifies whether to perform a dry run. Default value: false. Valid values: true, false.
    resource_type str
    The resource type of the transit router vbr attachment. Default value: VBR. Valid values: VBR.
    route_table_association_enabled bool
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    route_table_propagation_enabled bool

    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

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

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    tags Mapping[str, str]
    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 vbr.
    cenId String
    The ID of the CEN.
    vbrId String
    The ID of the VBR.
    autoPublishRouteEnabled Boolean
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value: false. Valid values:
    dryRun Boolean
    Specifies whether to perform a dry run. Default value: false. Valid values: true, false.
    resourceType String
    The resource type of the transit router vbr attachment. Default value: VBR. Valid values: VBR.
    routeTableAssociationEnabled Boolean
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    routeTablePropagationEnabled Boolean

    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

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

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    tags Map<String>
    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 vbr.

    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 status of the Transit Router VBR Attachment.
    TransitRouterAttachmentId string
    The ID of the VBR connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Transit Router VBR Attachment.
    TransitRouterAttachmentId string
    The ID of the VBR connection.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Transit Router VBR Attachment.
    transitRouterAttachmentId String
    The ID of the VBR connection.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the Transit Router VBR Attachment.
    transitRouterAttachmentId string
    The ID of the VBR connection.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the Transit Router VBR Attachment.
    transit_router_attachment_id str
    The ID of the VBR connection.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Transit Router VBR Attachment.
    transitRouterAttachmentId String
    The ID of the VBR connection.

    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, 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,
            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
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value: false. Valid values:
    CenId string
    The ID of the CEN.
    DryRun bool
    Specifies whether to perform a dry run. Default value: false. Valid values: true, false.
    ResourceType string
    The resource type of the transit router vbr attachment. Default value: VBR. Valid values: VBR.
    RouteTableAssociationEnabled bool
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    RouteTablePropagationEnabled bool

    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

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

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    Status string
    The status of the Transit Router VBR Attachment.
    Tags Dictionary<string, string>
    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 VBR connection.
    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 vbr.
    AutoPublishRouteEnabled bool
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value: false. Valid values:
    CenId string
    The ID of the CEN.
    DryRun bool
    Specifies whether to perform a dry run. Default value: false. Valid values: true, false.
    ResourceType string
    The resource type of the transit router vbr attachment. Default value: VBR. Valid values: VBR.
    RouteTableAssociationEnabled bool
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    RouteTablePropagationEnabled bool

    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

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

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    Status string
    The status of the Transit Router VBR Attachment.
    Tags map[string]string
    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 VBR connection.
    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 vbr.
    autoPublishRouteEnabled Boolean
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value: false. Valid values:
    cenId String
    The ID of the CEN.
    dryRun Boolean
    Specifies whether to perform a dry run. Default value: false. Valid values: true, false.
    resourceType String
    The resource type of the transit router vbr attachment. Default value: VBR. Valid values: VBR.
    routeTableAssociationEnabled Boolean
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    routeTablePropagationEnabled Boolean

    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

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

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    status String
    The status of the Transit Router VBR Attachment.
    tags Map<String,String>
    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 VBR connection.
    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 vbr.
    autoPublishRouteEnabled boolean
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value: false. Valid values:
    cenId string
    The ID of the CEN.
    dryRun boolean
    Specifies whether to perform a dry run. Default value: false. Valid values: true, false.
    resourceType string
    The resource type of the transit router vbr attachment. Default value: VBR. Valid values: VBR.
    routeTableAssociationEnabled boolean
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    routeTablePropagationEnabled boolean

    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

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

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    status string
    The status of the Transit Router VBR Attachment.
    tags {[key: string]: string}
    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 VBR connection.
    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 vbr.
    auto_publish_route_enabled bool
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value: false. Valid values:
    cen_id str
    The ID of the CEN.
    dry_run bool
    Specifies whether to perform a dry run. Default value: false. Valid values: true, false.
    resource_type str
    The resource type of the transit router vbr attachment. Default value: VBR. Valid values: VBR.
    route_table_association_enabled bool
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    route_table_propagation_enabled bool

    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

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

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    status str
    The status of the Transit Router VBR Attachment.
    tags Mapping[str, str]
    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 VBR connection.
    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 vbr.
    autoPublishRouteEnabled Boolean
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value: false. Valid values:
    cenId String
    The ID of the CEN.
    dryRun Boolean
    Specifies whether to perform a dry run. Default value: false. Valid values: true, false.
    resourceType String
    The resource type of the transit router vbr attachment. Default value: VBR. Valid values: VBR.
    routeTableAssociationEnabled Boolean
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    routeTablePropagationEnabled Boolean

    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

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

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.233.1. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    status String
    The status of the Transit Router VBR Attachment.
    tags Map<String>
    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 VBR connection.
    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 vbr.

    Import

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

    $ pulumi import alicloud:cen/transitRouterVbrAttachment:TransitRouterVbrAttachment 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.66.0 published on Friday, Nov 15, 2024 by Pulumi