Router Interface Args
data class RouterInterfaceArgs(val accessPointId: Output<String>? = null, val autoPay: Output<Boolean>? = null, val deleteHealthCheckIp: Output<Boolean>? = null, val description: Output<String>? = null, val hcRate: Output<Int>? = null, val hcThreshold: Output<String>? = null, val healthCheckSourceIp: Output<String>? = null, val healthCheckTargetIp: Output<String>? = null, val oppositeAccessPointId: Output<String>? = null, val oppositeInterfaceId: Output<String>? = null, val oppositeInterfaceOwnerId: Output<String>? = null, val oppositeRegionId: Output<String>? = null, val oppositeRouterId: Output<String>? = null, val oppositeRouterType: Output<String>? = null, val paymentType: Output<String>? = null, val period: Output<Int>? = null, val pricingCycle: Output<String>? = null, val role: Output<String>? = null, val routerId: Output<String>? = null, val routerInterfaceId: Output<String>? = null, val routerInterfaceName: Output<String>? = null, val routerType: Output<String>? = null, val spec: Output<String>? = null, val status: Output<String>? = null) : ConvertibleToJava<RouterInterfaceArgs>
Provides a Express Connect Router Interface resource. For information about Express Connect Router Interface and how to use it, see What is Router Interface.
NOTE: Available since v1.199.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.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetRegionsArgs;
import com.pulumi.alicloud.expressconnect.RouterInterface;
import com.pulumi.alicloud.expressconnect.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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf_example");
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("172.16.0.0/12")
.build());
final var defaultRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
.current(true)
.build());
var defaultRouterInterface = new RouterInterface("defaultRouterInterface", RouterInterfaceArgs.builder()
.description(name)
.oppositeRegionId(defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()))
.routerId(defaultNetwork.routerId())
.role("InitiatingSide")
.routerType("VRouter")
.paymentType("PayAsYouGo")
.routerInterfaceName(name)
.spec("Mini.2")
.build());
}
}
Content copied to clipboard
Import
Express Connect Router Interface can be imported using the id, e.g.
$ pulumi import alicloud:expressconnect/routerInterface:RouterInterface example <id>
Content copied to clipboard
Constructors
Link copied to clipboard
fun RouterInterfaceArgs(accessPointId: Output<String>? = null, autoPay: Output<Boolean>? = null, deleteHealthCheckIp: Output<Boolean>? = null, description: Output<String>? = null, hcRate: Output<Int>? = null, hcThreshold: Output<String>? = null, healthCheckSourceIp: Output<String>? = null, healthCheckTargetIp: Output<String>? = null, oppositeAccessPointId: Output<String>? = null, oppositeInterfaceId: Output<String>? = null, oppositeInterfaceOwnerId: Output<String>? = null, oppositeRegionId: Output<String>? = null, oppositeRouterId: Output<String>? = null, oppositeRouterType: Output<String>? = null, paymentType: Output<String>? = null, period: Output<Int>? = null, pricingCycle: Output<String>? = null, role: Output<String>? = null, routerId: Output<String>? = null, routerInterfaceId: Output<String>? = null, routerInterfaceName: Output<String>? = null, routerType: Output<String>? = null, spec: Output<String>? = null, status: Output<String>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Whether to pay automatically, value:-false (default): automatic payment is not enabled. After generating an order, you need to complete the payment at the order center.-true: Enable automatic payment to automatically pay for orders.>InstanceChargeType is required when the value of the parameter is **PrePaid.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard