alicloud.cen.TransitRouterVbrAttachment
Explore with Pulumi AI
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, 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",
RouteTableAssociationEnabled = false,
RouteTablePropagationEnabled = false,
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"),
RouteTableAssociationEnabled: pulumi.Bool(false),
RouteTablePropagationEnabled: pulumi.Bool(false),
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")
.routeTableAssociationEnabled(false)
.routeTablePropagationEnabled(false)
.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",
route_table_association_enabled=False,
route_table_propagation_enabled=False,
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",
routeTableAssociationEnabled: false,
routeTablePropagationEnabled: false,
tags: {
string: "string",
},
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: 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
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 - Auto publish route enabled.Default value is
false
. - Dry
Run bool - The dry run.
- Resource
Type 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.
- Route
Table boolAssociation Enabled - Whether to enabled route table association. The system default value is
true
. - Route
Table boolPropagation Enabled - Whether to enabled route table propagation. The system default value is
true
. - 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 transit router vbr attachment.
- Cen
Id string - The ID of the CEN.
- Vbr
Id string - The ID of the VBR.
- Auto
Publish boolRoute Enabled - Auto publish route enabled.Default value is
false
. - Dry
Run bool - The dry run.
- Resource
Type 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.
- Route
Table boolAssociation Enabled - Whether to enabled route table association. The system default value is
true
. - Route
Table boolPropagation Enabled - Whether to enabled route table propagation. The system default value is
true
. - 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 transit router vbr attachment.
- cen
Id String - The ID of the CEN.
- vbr
Id String - The ID of the VBR.
- auto
Publish BooleanRoute Enabled - Auto publish route enabled.Default value is
false
. - dry
Run Boolean - The dry run.
- resource
Type 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.
- route
Table BooleanAssociation Enabled - Whether to enabled route table association. The system default value is
true
. - route
Table BooleanPropagation Enabled - Whether to enabled route table propagation. The system default value is
true
. - 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 transit router vbr attachment.
- cen
Id string - The ID of the CEN.
- vbr
Id string - The ID of the VBR.
- auto
Publish booleanRoute Enabled - Auto publish route enabled.Default value is
false
. - dry
Run boolean - The dry run.
- resource
Type 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.
- route
Table booleanAssociation Enabled - Whether to enabled route table association. The system default value is
true
. - route
Table booleanPropagation Enabled - Whether to enabled route table propagation. The system default value is
true
. - {[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 transit router vbr attachment.
- cen_
id str - The ID of the CEN.
- vbr_
id str - The ID of the VBR.
- auto_
publish_ boolroute_ enabled - 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_ boolassociation_ enabled - Whether to enabled route table association. The system default value is
true
. - route_
table_ boolpropagation_ enabled - Whether to enabled route table propagation. The system default value is
true
. - 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 transit router vbr attachment.
- cen
Id String - The ID of the CEN.
- vbr
Id String - The ID of the VBR.
- auto
Publish BooleanRoute Enabled - Auto publish route enabled.Default value is
false
. - dry
Run Boolean - The dry run.
- resource
Type 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.
- route
Table BooleanAssociation Enabled - Whether to enabled route table association. The system default value is
true
. - route
Table BooleanPropagation Enabled - Whether to enabled route table propagation. The system default value is
true
. - 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 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.
- Transit
Router stringAttachment Id - 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.
- Transit
Router stringAttachment Id - 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.
- transit
Router StringAttachment Id - 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.
- transit
Router stringAttachment Id - 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_ strattachment_ id - 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.
- transit
Router StringAttachment Id - 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, 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 - Auto publish route enabled.Default value is
false
. - Cen
Id string - The ID of the CEN.
- Dry
Run bool - The dry run.
- Resource
Type 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.
- Route
Table boolAssociation Enabled - Whether to enabled route table association. The system default value is
true
. - Route
Table boolPropagation Enabled - Whether to enabled route table propagation. The system default value is
true
. - Status string
- The associating status of the network.
- 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 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
Id string - The ID of the VBR.
- Vbr
Owner stringId - The owner id of the transit router vbr attachment.
- Auto
Publish boolRoute Enabled - Auto publish route enabled.Default value is
false
. - Cen
Id string - The ID of the CEN.
- Dry
Run bool - The dry run.
- Resource
Type 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.
- Route
Table boolAssociation Enabled - Whether to enabled route table association. The system default value is
true
. - Route
Table boolPropagation Enabled - Whether to enabled route table propagation. The system default value is
true
. - Status string
- The associating status of the network.
- 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 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
Id string - The ID of the VBR.
- Vbr
Owner stringId - The owner id of the transit router vbr attachment.
- auto
Publish BooleanRoute Enabled - Auto publish route enabled.Default value is
false
. - cen
Id String - The ID of the CEN.
- dry
Run Boolean - The dry run.
- resource
Type 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.
- route
Table BooleanAssociation Enabled - Whether to enabled route table association. The system default value is
true
. - route
Table BooleanPropagation Enabled - Whether to enabled route table propagation. The system default value is
true
. - status String
- The associating status of the network.
- 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 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
Id String - The ID of the VBR.
- vbr
Owner StringId - The owner id of the transit router vbr attachment.
- auto
Publish booleanRoute Enabled - Auto publish route enabled.Default value is
false
. - cen
Id string - The ID of the CEN.
- dry
Run boolean - The dry run.
- resource
Type 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.
- route
Table booleanAssociation Enabled - Whether to enabled route table association. The system default value is
true
. - route
Table booleanPropagation Enabled - Whether to enabled route table propagation. The system default value is
true
. - status string
- The associating status of the network.
- {[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 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
Id string - The ID of the VBR.
- vbr
Owner stringId - The owner id of the transit router vbr attachment.
- auto_
publish_ boolroute_ enabled - 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_ boolassociation_ enabled - Whether to enabled route table association. The system default value is
true
. - route_
table_ boolpropagation_ enabled - Whether to enabled route table propagation. The system default value is
true
. - status str
- The associating status of the network.
- 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 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_
id str - The ID of the VBR.
- vbr_
owner_ strid - The owner id of the transit router vbr attachment.
- auto
Publish BooleanRoute Enabled - Auto publish route enabled.Default value is
false
. - cen
Id String - The ID of the CEN.
- dry
Run Boolean - The dry run.
- resource
Type 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.
- route
Table BooleanAssociation Enabled - Whether to enabled route table association. The system default value is
true
. - route
Table BooleanPropagation Enabled - Whether to enabled route table propagation. The system default value is
true
. - status String
- The associating status of the network.
- 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 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
Id String - The ID of the VBR.
- vbr
Owner StringId - 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.