TransitRouterPeerAttachmentArgs

data class TransitRouterPeerAttachmentArgs(val autoPublishRouteEnabled: Output<Boolean>? = null, val bandwidth: Output<Int>? = null, val bandwidthType: Output<String>? = null, val cenBandwidthPackageId: Output<String>? = null, val cenId: Output<String>? = null, val dryRun: Output<Boolean>? = null, val peerTransitRouterId: Output<String>? = null, val peerTransitRouterRegionId: Output<String>? = null, val resourceType: Output<String>? = null, val routeTableAssociationEnabled: Output<Boolean>? = null, val routeTablePropagationEnabled: Output<Boolean>? = null, val transitRouterAttachmentDescription: Output<String>? = null, val transitRouterAttachmentName: Output<String>? = null, val transitRouterId: Output<String>? = null) : ConvertibleToJava<TransitRouterPeerAttachmentArgs>

Provides a CEN transit router peer attachment resource that associate the transit router with the CEN instance. What is CEN transit router peer attachment

NOTE: Available since v1.128.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.Provider;
import com.pulumi.alicloud.ProviderArgs;
import com.pulumi.alicloud.cen.Instance;
import com.pulumi.alicloud.cen.InstanceArgs;
import com.pulumi.alicloud.cen.BandwidthPackage;
import com.pulumi.alicloud.cen.BandwidthPackageArgs;
import com.pulumi.alicloud.cen.BandwidthPackageAttachment;
import com.pulumi.alicloud.cen.BandwidthPackageAttachmentArgs;
import com.pulumi.alicloud.cen.TransitRouter;
import com.pulumi.alicloud.cen.TransitRouterArgs;
import com.pulumi.alicloud.cen.TransitRouterPeerAttachment;
import com.pulumi.alicloud.cen.TransitRouterPeerAttachmentArgs;
import com.pulumi.resources.CustomResourceOptions;
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("tf_example");
final var region = config.get("region").orElse("cn-hangzhou");
final var peerRegion = config.get("peerRegion").orElse("cn-beijing");
var hz = new Provider("hz", ProviderArgs.builder()
.region(region)
.build());
var bj = new Provider("bj", ProviderArgs.builder()
.region(peerRegion)
.build());
var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
.cenInstanceName(name)
.protectionLevel("REDUCED")
.build(), CustomResourceOptions.builder()
.provider(alicloud.bj())
.build());
var exampleBandwidthPackage = new BandwidthPackage("exampleBandwidthPackage", BandwidthPackageArgs.builder()
.bandwidth(5)
.cenBandwidthPackageName("tf_example")
.geographicRegionAId("China")
.geographicRegionBId("China")
.build(), CustomResourceOptions.builder()
.provider(alicloud.bj())
.build());
var exampleBandwidthPackageAttachment = new BandwidthPackageAttachment("exampleBandwidthPackageAttachment", BandwidthPackageAttachmentArgs.builder()
.instanceId(exampleInstance.id())
.bandwidthPackageId(exampleBandwidthPackage.id())
.build(), CustomResourceOptions.builder()
.provider(alicloud.bj())
.build());
var exampleTransitRouter = new TransitRouter("exampleTransitRouter", TransitRouterArgs.builder()
.cenId(exampleBandwidthPackageAttachment.instanceId())
.build(), CustomResourceOptions.builder()
.provider(alicloud.hz())
.build());
var peer = new TransitRouter("peer", TransitRouterArgs.builder()
.cenId(exampleTransitRouter.cenId())
.build(), CustomResourceOptions.builder()
.provider(alicloud.bj())
.build());
var exampleTransitRouterPeerAttachment = new TransitRouterPeerAttachment("exampleTransitRouterPeerAttachment", TransitRouterPeerAttachmentArgs.builder()
.cenId(exampleInstance.id())
.transitRouterId(exampleTransitRouter.transitRouterId())
.peerTransitRouterRegionId(peerRegion)
.peerTransitRouterId(peer.transitRouterId())
.cenBandwidthPackageId(exampleBandwidthPackageAttachment.bandwidthPackageId())
.bandwidth(5)
.transitRouterAttachmentDescription(name)
.transitRouterAttachmentName(name)
.build(), CustomResourceOptions.builder()
.provider(alicloud.hz())
.build());
}
}

Import

CEN instance can be imported using the id, e.g.

$ pulumi import alicloud:cen/transitRouterPeerAttachment:TransitRouterPeerAttachment example tr-********:tr-attach-*******

Constructors

Link copied to clipboard
fun TransitRouterPeerAttachmentArgs(autoPublishRouteEnabled: Output<Boolean>? = null, bandwidth: Output<Int>? = null, bandwidthType: Output<String>? = null, cenBandwidthPackageId: Output<String>? = null, cenId: Output<String>? = null, dryRun: Output<Boolean>? = null, peerTransitRouterId: Output<String>? = null, peerTransitRouterRegionId: Output<String>? = null, resourceType: Output<String>? = null, routeTableAssociationEnabled: Output<Boolean>? = null, routeTablePropagationEnabled: Output<Boolean>? = null, transitRouterAttachmentDescription: Output<String>? = null, transitRouterAttachmentName: Output<String>? = null, transitRouterId: Output<String>? = null)

Functions

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

Properties

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

Auto publish route enabled. The system default value is false.

Link copied to clipboard
val bandwidth: Output<Int>? = null

The bandwidth of the bandwidth package.

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

The method that is used to allocate bandwidth to the cross-region connection. Valid values: BandwidthPackage and DataTransfer.

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

The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity

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

The ID of the CEN.

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

Whether to perform pre-check for this request, including permission, instance status verification, etc.

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

The ID of the peer transit router.

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

The region ID of peer transit router.

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

The resource type to attachment. Only support VR and default value is VR.

Link copied to clipboard

Whether to association route table. System default is false.

Link copied to clipboard

Whether to propagation route table. System default is false.

Link copied to clipboard

The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with http:// or https://.

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

The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)

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

The ID of the transit router to attach.