alicloud.cen.TransitRouterVbrAttachment
Explore with Pulumi AI
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:
- Cen
Id string - The ID of the CEN.
- Vbr
Id string - The ID of the VBR.
- Auto
Publish boolRoute Enabled - 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 string - The resource type of the transit router vbr attachment. Default value:
VBR
. Valid values:VBR
. - Route
Table boolAssociation Enabled - Whether to enabled route table association. NOTE: "Field
route_table_association_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTableAssociation
instead, how to use alicloud_cen_transit_router_route_table_association." - Route
Table boolPropagation Enabled Whether to enabled route table propagation. NOTE: "Field
route_table_propagation_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTablePropagation
instead, how to use alicloud_cen_transit_router_route_table_propagation."->NOTE: Ensure that the vbr is not used in Express Connect.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Transit
Router stringAttachment Description - The description of the transit router vbr attachment.
- Transit
Router stringAttachment Name - The name of the transit router vbr attachment.
- Transit
Router stringId - The ID of the transit router.
- Vbr
Owner stringId - The owner id of the vbr.
- Cen
Id string - The ID of the CEN.
- Vbr
Id string - The ID of the VBR.
- Auto
Publish boolRoute Enabled - 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 string - The resource type of the transit router vbr attachment. Default value:
VBR
. Valid values:VBR
. - Route
Table boolAssociation Enabled - Whether to enabled route table association. NOTE: "Field
route_table_association_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTableAssociation
instead, how to use alicloud_cen_transit_router_route_table_association." - Route
Table boolPropagation Enabled Whether to enabled route table propagation. NOTE: "Field
route_table_propagation_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTablePropagation
instead, how to use alicloud_cen_transit_router_route_table_propagation."->NOTE: Ensure that the vbr is not used in Express Connect.
- map[string]string
- A mapping of tags to assign to the resource.
- Transit
Router stringAttachment Description - The description of the transit router vbr attachment.
- Transit
Router stringAttachment Name - The name of the transit router vbr attachment.
- Transit
Router stringId - The ID of the transit router.
- Vbr
Owner stringId - The owner id of the vbr.
- cen
Id String - The ID of the CEN.
- vbr
Id String - The ID of the VBR.
- auto
Publish BooleanRoute Enabled - Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value:
false
. Valid values: - dry
Run Boolean - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - resource
Type String - The resource type of the transit router vbr attachment. Default value:
VBR
. Valid values:VBR
. - route
Table BooleanAssociation Enabled - Whether to enabled route table association. NOTE: "Field
route_table_association_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTableAssociation
instead, how to use alicloud_cen_transit_router_route_table_association." - route
Table BooleanPropagation Enabled Whether to enabled route table propagation. NOTE: "Field
route_table_propagation_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTablePropagation
instead, how to use alicloud_cen_transit_router_route_table_propagation."->NOTE: Ensure that the vbr is not used in Express Connect.
- Map<String,String>
- A mapping of tags to assign to the resource.
- transit
Router StringAttachment Description - The description of the transit router vbr attachment.
- transit
Router StringAttachment Name - The name of the transit router vbr attachment.
- transit
Router StringId - The ID of the transit router.
- vbr
Owner StringId - The owner id of the vbr.
- cen
Id string - The ID of the CEN.
- vbr
Id string - The ID of the VBR.
- auto
Publish booleanRoute Enabled - Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value:
false
. Valid values: - dry
Run boolean - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - resource
Type string - The resource type of the transit router vbr attachment. Default value:
VBR
. Valid values:VBR
. - route
Table booleanAssociation Enabled - Whether to enabled route table association. NOTE: "Field
route_table_association_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTableAssociation
instead, how to use alicloud_cen_transit_router_route_table_association." - route
Table booleanPropagation Enabled Whether to enabled route table propagation. NOTE: "Field
route_table_propagation_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTablePropagation
instead, how to use alicloud_cen_transit_router_route_table_propagation."->NOTE: Ensure that the vbr is not used in Express Connect.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- transit
Router stringAttachment Description - The description of the transit router vbr attachment.
- transit
Router stringAttachment Name - The name of the transit router vbr attachment.
- transit
Router stringId - The ID of the transit router.
- vbr
Owner stringId - The owner id of the vbr.
- cen_
id str - The ID of the CEN.
- vbr_
id str - The ID of the VBR.
- auto_
publish_ boolroute_ enabled - 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_ boolassociation_ enabled - Whether to enabled route table association. NOTE: "Field
route_table_association_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTableAssociation
instead, how to use alicloud_cen_transit_router_route_table_association." - route_
table_ boolpropagation_ enabled Whether to enabled route table propagation. NOTE: "Field
route_table_propagation_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTablePropagation
instead, how to use alicloud_cen_transit_router_route_table_propagation."->NOTE: Ensure that the vbr is not used in Express Connect.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- transit_
router_ strattachment_ description - The description of the transit router vbr attachment.
- transit_
router_ strattachment_ name - The name of the transit router vbr attachment.
- transit_
router_ strid - The ID of the transit router.
- vbr_
owner_ strid - The owner id of the vbr.
- cen
Id String - The ID of the CEN.
- vbr
Id String - The ID of the VBR.
- auto
Publish BooleanRoute Enabled - Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value:
false
. Valid values: - dry
Run Boolean - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - resource
Type String - The resource type of the transit router vbr attachment. Default value:
VBR
. Valid values:VBR
. - route
Table BooleanAssociation Enabled - Whether to enabled route table association. NOTE: "Field
route_table_association_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTableAssociation
instead, how to use alicloud_cen_transit_router_route_table_association." - route
Table BooleanPropagation Enabled Whether to enabled route table propagation. NOTE: "Field
route_table_propagation_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTablePropagation
instead, how to use alicloud_cen_transit_router_route_table_propagation."->NOTE: Ensure that the vbr is not used in Express Connect.
- Map<String>
- A mapping of tags to assign to the resource.
- transit
Router StringAttachment Description - The description of the transit router vbr attachment.
- transit
Router StringAttachment Name - The name of the transit router vbr attachment.
- transit
Router StringId - The ID of the transit router.
- vbr
Owner StringId - 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.
- Transit
Router stringAttachment Id - 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.
- Transit
Router stringAttachment Id - 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.
- transit
Router StringAttachment Id - 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.
- transit
Router stringAttachment Id - 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_ strattachment_ id - 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.
- transit
Router StringAttachment Id - 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.
- Auto
Publish boolRoute Enabled - Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value:
false
. Valid values: - Cen
Id string - The ID of the CEN.
- Dry
Run bool - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - Resource
Type string - The resource type of the transit router vbr attachment. Default value:
VBR
. Valid values:VBR
. - Route
Table boolAssociation Enabled - Whether to enabled route table association. NOTE: "Field
route_table_association_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTableAssociation
instead, how to use alicloud_cen_transit_router_route_table_association." - Route
Table boolPropagation Enabled Whether to enabled route table propagation. NOTE: "Field
route_table_propagation_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTablePropagation
instead, how to use alicloud_cen_transit_router_route_table_propagation."->NOTE: Ensure that the vbr is not used in Express Connect.
- Status string
- The status of the Transit Router VBR Attachment.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Transit
Router stringAttachment Description - The description of the transit router vbr attachment.
- Transit
Router stringAttachment Id - The ID of the VBR connection.
- Transit
Router stringAttachment Name - The name of the transit router vbr attachment.
- Transit
Router stringId - The ID of the transit router.
- Vbr
Id string - The ID of the VBR.
- Vbr
Owner stringId - The owner id of the vbr.
- Auto
Publish boolRoute Enabled - Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value:
false
. Valid values: - Cen
Id string - The ID of the CEN.
- Dry
Run bool - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - Resource
Type string - The resource type of the transit router vbr attachment. Default value:
VBR
. Valid values:VBR
. - Route
Table boolAssociation Enabled - Whether to enabled route table association. NOTE: "Field
route_table_association_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTableAssociation
instead, how to use alicloud_cen_transit_router_route_table_association." - Route
Table boolPropagation Enabled Whether to enabled route table propagation. NOTE: "Field
route_table_propagation_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTablePropagation
instead, how to use alicloud_cen_transit_router_route_table_propagation."->NOTE: Ensure that the vbr is not used in Express Connect.
- Status string
- The status of the Transit Router VBR Attachment.
- map[string]string
- A mapping of tags to assign to the resource.
- Transit
Router stringAttachment Description - The description of the transit router vbr attachment.
- Transit
Router stringAttachment Id - The ID of the VBR connection.
- Transit
Router stringAttachment Name - The name of the transit router vbr attachment.
- Transit
Router stringId - The ID of the transit router.
- Vbr
Id string - The ID of the VBR.
- Vbr
Owner stringId - The owner id of the vbr.
- auto
Publish BooleanRoute Enabled - Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value:
false
. Valid values: - cen
Id String - The ID of the CEN.
- dry
Run Boolean - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - resource
Type String - The resource type of the transit router vbr attachment. Default value:
VBR
. Valid values:VBR
. - route
Table BooleanAssociation Enabled - Whether to enabled route table association. NOTE: "Field
route_table_association_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTableAssociation
instead, how to use alicloud_cen_transit_router_route_table_association." - route
Table BooleanPropagation Enabled Whether to enabled route table propagation. NOTE: "Field
route_table_propagation_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTablePropagation
instead, how to use alicloud_cen_transit_router_route_table_propagation."->NOTE: Ensure that the vbr is not used in Express Connect.
- status String
- The status of the Transit Router VBR Attachment.
- Map<String,String>
- A mapping of tags to assign to the resource.
- transit
Router StringAttachment Description - The description of the transit router vbr attachment.
- transit
Router StringAttachment Id - The ID of the VBR connection.
- transit
Router StringAttachment Name - The name of the transit router vbr attachment.
- transit
Router StringId - The ID of the transit router.
- vbr
Id String - The ID of the VBR.
- vbr
Owner StringId - The owner id of the vbr.
- auto
Publish booleanRoute Enabled - Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value:
false
. Valid values: - cen
Id string - The ID of the CEN.
- dry
Run boolean - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - resource
Type string - The resource type of the transit router vbr attachment. Default value:
VBR
. Valid values:VBR
. - route
Table booleanAssociation Enabled - Whether to enabled route table association. NOTE: "Field
route_table_association_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTableAssociation
instead, how to use alicloud_cen_transit_router_route_table_association." - route
Table booleanPropagation Enabled Whether to enabled route table propagation. NOTE: "Field
route_table_propagation_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTablePropagation
instead, how to use alicloud_cen_transit_router_route_table_propagation."->NOTE: Ensure that the vbr is not used in Express Connect.
- status string
- The status of the Transit Router VBR Attachment.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- transit
Router stringAttachment Description - The description of the transit router vbr attachment.
- transit
Router stringAttachment Id - The ID of the VBR connection.
- transit
Router stringAttachment Name - The name of the transit router vbr attachment.
- transit
Router stringId - The ID of the transit router.
- vbr
Id string - The ID of the VBR.
- vbr
Owner stringId - The owner id of the vbr.
- auto_
publish_ boolroute_ enabled - 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_ boolassociation_ enabled - Whether to enabled route table association. NOTE: "Field
route_table_association_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTableAssociation
instead, how to use alicloud_cen_transit_router_route_table_association." - route_
table_ boolpropagation_ enabled Whether to enabled route table propagation. NOTE: "Field
route_table_propagation_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTablePropagation
instead, how to use alicloud_cen_transit_router_route_table_propagation."->NOTE: Ensure that the vbr is not used in Express Connect.
- status str
- The status of the Transit Router VBR Attachment.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- transit_
router_ strattachment_ description - The description of the transit router vbr attachment.
- transit_
router_ strattachment_ id - The ID of the VBR connection.
- transit_
router_ strattachment_ name - The name of the transit router vbr attachment.
- transit_
router_ strid - The ID of the transit router.
- vbr_
id str - The ID of the VBR.
- vbr_
owner_ strid - The owner id of the vbr.
- auto
Publish BooleanRoute Enabled - Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to the VBR. Default value:
false
. Valid values: - cen
Id String - The ID of the CEN.
- dry
Run Boolean - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - resource
Type String - The resource type of the transit router vbr attachment. Default value:
VBR
. Valid values:VBR
. - route
Table BooleanAssociation Enabled - Whether to enabled route table association. NOTE: "Field
route_table_association_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTableAssociation
instead, how to use alicloud_cen_transit_router_route_table_association." - route
Table BooleanPropagation Enabled Whether to enabled route table propagation. NOTE: "Field
route_table_propagation_enabled
has been deprecated from provider version 1.233.1. Please use the resourcealicloud.cen.TransitRouterRouteTablePropagation
instead, how to use alicloud_cen_transit_router_route_table_propagation."->NOTE: Ensure that the vbr is not used in Express Connect.
- status String
- The status of the Transit Router VBR Attachment.
- Map<String>
- A mapping of tags to assign to the resource.
- transit
Router StringAttachment Description - The description of the transit router vbr attachment.
- transit
Router StringAttachment Id - The ID of the VBR connection.
- transit
Router StringAttachment Name - The name of the transit router vbr attachment.
- transit
Router StringId - The ID of the transit router.
- vbr
Id String - The ID of the VBR.
- vbr
Owner StringId - 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.