TransitRouter

class TransitRouter : KotlinCustomResource

Provides a Cloud Enterprise Network (CEN) Transit Router resource. For information about Cloud Enterprise Network (CEN) Transit Router and how to use it, see What is Transit Router.

NOTE: Available since v1.126.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.cen.Instance("example", {
cenInstanceName: "tf_example",
description: "an example for cen",
});
const exampleTransitRouter = new alicloud.cen.TransitRouter("example", {
transitRouterName: "tf_example",
cenId: example.id,
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cen.Instance("example",
cen_instance_name="tf_example",
description="an example for cen")
example_transit_router = alicloud.cen.TransitRouter("example",
transit_router_name="tf_example",
cen_id=example.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Cen.Instance("example", new()
{
CenInstanceName = "tf_example",
Description = "an example for cen",
});
var exampleTransitRouter = new AliCloud.Cen.TransitRouter("example", new()
{
TransitRouterName = "tf_example",
CenId = example.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := cen.NewInstance(ctx, "example", &cen.InstanceArgs{
CenInstanceName: pulumi.String("tf_example"),
Description: pulumi.String("an example for cen"),
})
if err != nil {
return err
}
_, err = cen.NewTransitRouter(ctx, "example", &cen.TransitRouterArgs{
TransitRouterName: pulumi.String("tf_example"),
CenId: example.ID(),
})
if err != nil {
return err
}
return nil
})
}
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 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) {
var example = new Instance("example", InstanceArgs.builder()
.cenInstanceName("tf_example")
.description("an example for cen")
.build());
var exampleTransitRouter = new TransitRouter("exampleTransitRouter", TransitRouterArgs.builder()
.transitRouterName("tf_example")
.cenId(example.id())
.build());
}
}
resources:
example:
type: alicloud:cen:Instance
properties:
cenInstanceName: tf_example
description: an example for cen
exampleTransitRouter:
type: alicloud:cen:TransitRouter
name: example
properties:
transitRouterName: tf_example
cenId: ${example.id}

Import

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

$ pulumi import alicloud:cen/transitRouter:TransitRouter example <id>

Properties

Link copied to clipboard
val cenId: Output<String>

The ID of the Cloud Enterprise Network (CEN) instance.

Link copied to clipboard
val createTime: Output<String>

The creation time of the resource

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

The dry run.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val regionId: Output<String>

The ID of the region where the Enterprise Edition transit router is deployed.

Link copied to clipboard
val status: Output<String>

Status

Link copied to clipboard

Specifies whether to enable the multicast feature for the Enterprise Edition transit router. Valid values:

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

The tag of the resource

Link copied to clipboard

The description of the Enterprise Edition transit router instance. The description must be 1 to 256 characters in length, and cannot start with http:// or https://. You can also leave this parameter empty.

Link copied to clipboard
val transitRouterId: Output<String>

The ID of the transit router.

Link copied to clipboard

The name of the Enterprise Edition transit router. The name must be 1 to 128 characters in length, and cannot start with http:// or https://. You can also leave this parameter empty.

Link copied to clipboard
val type: Output<String>

Type

Link copied to clipboard
val urn: Output<String>