TransitRouterVbrAttachmentArgs

data class TransitRouterVbrAttachmentArgs(val autoPublishRouteEnabled: Output<Boolean>? = null, val cenId: Output<String>? = null, val dryRun: Output<Boolean>? = null, val resourceType: Output<String>? = null, val routeTableAssociationEnabled: Output<Boolean>? = null, val routeTablePropagationEnabled: Output<Boolean>? = null, val tags: Output<Map<String, Any>>? = null, val transitRouterAttachmentDescription: Output<String>? = null, val transitRouterAttachmentName: Output<String>? = null, val transitRouterId: Output<String>? = null, val vbrId: Output<String>? = null, val vbrOwnerId: Output<String>? = null) : ConvertibleToJava<TransitRouterVbrAttachmentArgs>

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

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 defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.cenInstanceName(name)
.protectionLevel("REDUCED")
.build());
var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()
.cenId(defaultInstance.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(defaultInstance.id())
.build());
}
}

Import

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

$ pulumi import alicloud:cen/transitRouterVbrAttachment:TransitRouterVbrAttachment example tr-********:tr-attach-********

Constructors

Link copied to clipboard
fun TransitRouterVbrAttachmentArgs(autoPublishRouteEnabled: Output<Boolean>? = null, cenId: Output<String>? = null, dryRun: Output<Boolean>? = null, resourceType: Output<String>? = null, routeTableAssociationEnabled: Output<Boolean>? = null, routeTablePropagationEnabled: Output<Boolean>? = null, tags: Output<Map<String, Any>>? = null, transitRouterAttachmentDescription: Output<String>? = null, transitRouterAttachmentName: Output<String>? = null, transitRouterId: Output<String>? = null, vbrId: Output<String>? = null, vbrOwnerId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): TransitRouterVbrAttachmentArgs

Properties

Link copied to clipboard
val autoPublishRouteEnabled: Output<Boolean>? = null

Auto publish route enabled.Default value is false.

Link copied to clipboard
val cenId: Output<String>? = null

The ID of the CEN.

Link copied to clipboard
val dryRun: Output<Boolean>? = null

The dry run.

Link copied to clipboard
val resourceType: Output<String>? = null

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.

Link copied to clipboard

Whether to enabled route table association. The system default value is true.

Link copied to clipboard

Whether to enabled route table propagation. The system default value is true.

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null

A mapping of tags to assign to the resource.

Link copied to clipboard

The description of the transit router vbr attachment.

Link copied to clipboard
val transitRouterAttachmentName: Output<String>? = null

The name of the transit router vbr attachment.

Link copied to clipboard
val transitRouterId: Output<String>? = null

The ID of the transit router.

Link copied to clipboard
val vbrId: Output<String>? = null

The ID of the VBR.

Link copied to clipboard
val vbrOwnerId: Output<String>? = null

The owner id of the transit router vbr attachment.