RouteServiceArgs

data class RouteServiceArgs(val accessRegionId: Output<String>? = null, val cenId: Output<String>? = null, val description: Output<String>? = null, val host: Output<String>? = null, val hostRegionId: Output<String>? = null, val hostVpcId: Output<String>? = null) : ConvertibleToJava<RouteServiceArgs>

Provides a CEN Route Service resource. The virtual border routers (VBRs) and Cloud Connect Network (CCN) instances attached to Cloud Enterprise Network (CEN) instances can access the cloud services deployed in VPCs through the CEN instances. For information about CEN Route Service and how to use it, see What is Route Service.

NOTE: Available since v1.99.0. NOTE: Ensure that at least one VPC in the selected region is attached to the CEN instance.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetRegionsArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.cen.Instance;
import com.pulumi.alicloud.cen.InstanceArgs;
import com.pulumi.alicloud.cen.InstanceAttachment;
import com.pulumi.alicloud.cen.InstanceAttachmentArgs;
import com.pulumi.alicloud.cen.RouteService;
import com.pulumi.alicloud.cen.RouteServiceArgs;
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 default = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
.current(true)
.build());
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.vpcName("tf_example")
.cidrBlock("172.17.3.0/24")
.build());
var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
.cenInstanceName("tf_example")
.description("an example for cen")
.build());
var exampleInstanceAttachment = new InstanceAttachment("exampleInstanceAttachment", InstanceAttachmentArgs.builder()
.instanceId(exampleInstance.id())
.childInstanceId(exampleNetwork.id())
.childInstanceType("VPC")
.childInstanceRegionId(default_.regions()[0].id())
.build());
var exampleRouteService = new RouteService("exampleRouteService", RouteServiceArgs.builder()
.accessRegionId(default_.regions()[0].id())
.hostRegionId(default_.regions()[0].id())
.hostVpcId(exampleNetwork.id())
.cenId(exampleInstanceAttachment.instanceId())
.host("100.118.28.52/32")
.build());
}
}

Import

CEN Route Service can be imported using the id, e.g.

$ pulumi import alicloud:cen/routeService:RouteService example cen-ahixm0efqh********:cn-shanghai:100.118.28.52/32:cn-shanghai

Constructors

Link copied to clipboard
fun RouteServiceArgs(accessRegionId: Output<String>? = null, cenId: Output<String>? = null, description: Output<String>? = null, host: Output<String>? = null, hostRegionId: Output<String>? = null, hostVpcId: Output<String>? = null)

Functions

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

Properties

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

The region of the network instances that access the cloud services.

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

The ID of the CEN instance.

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

The description of the cloud service.

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

The domain name or IP address of the cloud service.

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

The region of the cloud service.

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

The VPC associated with the cloud service.