VirtualPhysicalConnectionArgs

data class VirtualPhysicalConnectionArgs(val description: Output<String>? = null, val dryRun: Output<Boolean>? = null, val expectSpec: Output<String>? = null, val orderMode: Output<String>? = null, val parentPhysicalConnectionId: Output<String>? = null, val resourceGroupId: Output<String>? = null, val spec: Output<String>? = null, val virtualPhysicalConnectionName: Output<String>? = null, val vlanId: Output<Int>? = null, val vpconnAliUid: Output<String>? = null) : ConvertibleToJava<VirtualPhysicalConnectionArgs>

Provides a Express Connect Virtual Physical Connection resource. For information about Express Connect Virtual Physical Connection and how to use it, see What is Virtual Physical Connection.

NOTE: Available in v1.196.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.expressconnect.ExpressconnectFunctions;
import com.pulumi.alicloud.expressconnect.inputs.GetPhysicalConnectionsArgs;
import com.pulumi.alicloud.expressconnect.VirtualPhysicalConnection;
import com.pulumi.alicloud.expressconnect.VirtualPhysicalConnectionArgs;
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 defaultPhysicalConnections = ExpressconnectFunctions.getPhysicalConnections(GetPhysicalConnectionsArgs.builder()
.nameRegex("^preserved-NODELETING")
.build());
var defaultVirtualPhysicalConnection = new VirtualPhysicalConnection("defaultVirtualPhysicalConnection", VirtualPhysicalConnectionArgs.builder()
.virtualPhysicalConnectionName("amp_resource_test")
.description("amp_resource_test")
.orderMode("PayByPhysicalConnectionOwner")
.parentPhysicalConnectionId(defaultPhysicalConnections.applyValue(getPhysicalConnectionsResult -> getPhysicalConnectionsResult.ids()[0]))
.spec("50M")
.vlanId(789)
.vpconnAliUid(1234567890)
.build());
}
}

Import

Express Connect Virtual Physical Connection can be imported using the id, e.g.

$ pulumi import alicloud:expressconnect/virtualPhysicalConnection:VirtualPhysicalConnection example <id>

Constructors

Link copied to clipboard
fun VirtualPhysicalConnectionArgs(description: Output<String>? = null, dryRun: Output<Boolean>? = null, expectSpec: Output<String>? = null, orderMode: Output<String>? = null, parentPhysicalConnectionId: Output<String>? = null, resourceGroupId: Output<String>? = null, spec: Output<String>? = null, virtualPhysicalConnectionName: Output<String>? = null, vlanId: Output<Int>? = null, vpconnAliUid: Output<String>? = null)

Functions

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

Properties

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

The description of the physical connection.

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

Specifies whether to precheck the API request. Valid values: true and false.

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

The estimated bandwidth value of the shared line. Valid values: 50M, 100M, 200M, 300M, 400M, 500M, 1G, 2G, 5G, 8G, and 10G. Note: By default, the values of 2G, 5G, 8G, and 10G are unavailable. If you want to specify these values, contact your customer manager. Unit: M indicates Mbps, G indicates Gbps.

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

The payment method of shared dedicated line. Value:

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

The ID of the instance of the physical connection.

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

The resource group id.

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

The bandwidth value of the shared line. Valid values: 50M, 100M, 200M, 300M, 400M, 500M, 1G, 2G, 5G, 8G, and 10G. Note: By default, the values of 2G, 5G, 8G, and 10G are unavailable. If you want to specify these values, contact your customer manager. Unit: M indicates Mbps, G indicates Gbps.

Link copied to clipboard

The name of the physical connection.

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

The VLAN ID of the shared leased line. Valid values: 0 to 2999.

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

The ID of the Alibaba Cloud account (primary account) of the owner of the shared line.