RouterInterfaceArgs

data class RouterInterfaceArgs(val description: Output<String>? = null, val healthCheckSourceIp: Output<String>? = null, val healthCheckTargetIp: Output<String>? = null, val instanceChargeType: Output<String>? = null, val name: Output<String>? = null, val oppositeAccessPointId: Output<String>? = null, val oppositeRegion: Output<String>? = null, val period: Output<Int>? = null, val role: Output<String>? = null, val routerId: Output<String>? = null, val routerType: Output<String>? = null, val specification: Output<String>? = null) : ConvertibleToJava<RouterInterfaceArgs>

Provides a VPC router interface resource aim to build a connection between two VPCs.

DEPRECATED: This resource has been deprecated from version 1.199.0. Please use new resource alicloud_express_connect_router_interface. NOTE: Only one pair of connected router interfaces can exist between two routers. Up to 5 router interfaces can be created for each router and each account. NOTE: The router interface is not connected when it is created. It can be connected by means of resource alicloud_router_interface_connection.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.RouterInterface;
import com.pulumi.alicloud.vpc.RouterInterfaceArgs;
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 foo = new Network("foo", NetworkArgs.builder()
.vpcName("tf_test_foo12345")
.cidrBlock("172.16.0.0/12")
.build());
var interface_ = new RouterInterface("interface", RouterInterfaceArgs.builder()
.oppositeRegion("cn-beijing")
.routerType("VRouter")
.routerId(foo.routerId())
.role("InitiatingSide")
.specification("Large.2")
.description("test1")
.build());
}
}

Import

The router interface can be imported using the id, e.g.

$ pulumi import alicloud:vpc/routerInterface:RouterInterface interface ri-abc123456

Constructors

Link copied to clipboard
fun RouterInterfaceArgs(description: Output<String>? = null, healthCheckSourceIp: Output<String>? = null, healthCheckTargetIp: Output<String>? = null, instanceChargeType: Output<String>? = null, name: Output<String>? = null, oppositeAccessPointId: Output<String>? = null, oppositeRegion: Output<String>? = null, period: Output<Int>? = null, role: Output<String>? = null, routerId: Output<String>? = null, routerType: Output<String>? = null, specification: Output<String>? = null)

Functions

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

Properties

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

Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.

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

Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when router_type is VBR. The IP must be an unused IP in the local VPC. It and health_check_target_ip must be specified at the same time.

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

Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when router_type is VBR. The IP must be an unused IP in the local VPC. It and health_check_source_ip must be specified at the same time.

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

The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.

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

Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.

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

It has been deprecated from version 1.11.0.

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

The Region of peer side.

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

The duration that you will buy the resource, in month. It is valid when instance_charge_type is PrePaid. Valid values: 1-9, 12, 24, 36. At present, the provider does not support modify "period" and you can do that via web console.

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

The role the router interface plays. Optional value: InitiatingSide, AcceptingSide.

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

The Router ID.

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

Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.

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

Specification of router interfaces. It is valid when role is InitiatingSide. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.