VbrPconnAssociationArgs

data class VbrPconnAssociationArgs(val enableIpv6: Output<Boolean>? = null, val localGatewayIp: Output<String>? = null, val localIpv6GatewayIp: Output<String>? = null, val peerGatewayIp: Output<String>? = null, val peerIpv6GatewayIp: Output<String>? = null, val peeringIpv6SubnetMask: Output<String>? = null, val peeringSubnetMask: Output<String>? = null, val physicalConnectionId: Output<String>? = null, val vbrId: Output<String>? = null, val vlanId: Output<Int>? = null) : ConvertibleToJava<VbrPconnAssociationArgs>

Provides a Express Connect Vbr Pconn Association resource. For information about Express Connect Vbr Pconn Association and how to use it, see What is Vbr Pconn Association.

NOTE: Available since 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.random.RandomInteger;
import com.pulumi.random.RandomIntegerArgs;
import com.pulumi.alicloud.expressconnect.VirtualBorderRouter;
import com.pulumi.alicloud.expressconnect.VirtualBorderRouterArgs;
import com.pulumi.alicloud.expressconnect.VbrPconnAssociation;
import com.pulumi.alicloud.expressconnect.VbrPconnAssociationArgs;
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");
final var examplePhysicalConnections = ExpressconnectFunctions.getPhysicalConnections(GetPhysicalConnectionsArgs.builder()
.nameRegex("^preserved-NODELETING")
.build());
var vlanId = new RandomInteger("vlanId", RandomIntegerArgs.builder()
.max(2999)
.min(1)
.build());
var exampleVirtualBorderRouter = new VirtualBorderRouter("exampleVirtualBorderRouter", VirtualBorderRouterArgs.builder()
.localGatewayIp("10.0.0.1")
.peerGatewayIp("10.0.0.2")
.peeringSubnetMask("255.255.255.252")
.physicalConnectionId(examplePhysicalConnections.applyValue(getPhysicalConnectionsResult -> getPhysicalConnectionsResult.connections()[0].id()))
.virtualBorderRouterName(name)
.vlanId(vlanId.id())
.minRxInterval(1000)
.minTxInterval(1000)
.detectMultiplier(10)
.enableIpv6(true)
.localIpv6GatewayIp("2408:4004:cc:400::1")
.peerIpv6GatewayIp("2408:4004:cc:400::2")
.peeringIpv6SubnetMask("2408:4004:cc:400::/56")
.build());
var exampleVbrPconnAssociation = new VbrPconnAssociation("exampleVbrPconnAssociation", VbrPconnAssociationArgs.builder()
.peerGatewayIp("10.0.0.6")
.localGatewayIp("10.0.0.5")
.physicalConnectionId(examplePhysicalConnections.applyValue(getPhysicalConnectionsResult -> getPhysicalConnectionsResult.connections()[2].id()))
.vbrId(exampleVirtualBorderRouter.id())
.peeringSubnetMask("255.255.255.252")
.vlanId(vlanId.id().applyValue(id -> id + 2))
.enableIpv6(true)
.localIpv6GatewayIp("2408:4004:cc::3")
.peerIpv6GatewayIp("2408:4004:cc::4")
.peeringIpv6SubnetMask("2408:4004:cc::/56")
.build());
}
}

Import

Express Connect Vbr Pconn Association can be imported using the id, e.g.

$ pulumi import alicloud:expressconnect/vbrPconnAssociation:VbrPconnAssociation example <VbrId>:<PhysicalConnectionId>

Constructors

Link copied to clipboard
fun VbrPconnAssociationArgs(enableIpv6: Output<Boolean>? = null, localGatewayIp: Output<String>? = null, localIpv6GatewayIp: Output<String>? = null, peerGatewayIp: Output<String>? = null, peerIpv6GatewayIp: Output<String>? = null, peeringIpv6SubnetMask: Output<String>? = null, peeringSubnetMask: Output<String>? = null, physicalConnectionId: Output<String>? = null, vbrId: Output<String>? = null, vlanId: Output<Int>? = null)

Functions

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

Properties

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

Whether IPv6 is enabled. Value:

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

The Alibaba cloud IP address of the VBR instance.

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

The IPv6 address on the Alibaba Cloud side of the VBR instance.

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

The client IP address of the VBR instance. This attribute only allows the VBR owner to specify or modify. NOTE: Required when creating a VBR instance for the physical connection owner.

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

The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.Two IPv6 addresses must be in the same subnet.

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

The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.The two IP addresses must be in the same subnet.

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

The IPv6 address of the client side of the VBR instance. This attribute only allows the VBR owner to specify or modify. NOTE: Required when creating a VBR instance for the physical connection owner.

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

The ID of the leased line instance.

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

The ID of the VBR instance.

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

VLAN ID of the VBR. Valid values: 0 to 2999. NOTE: only the owner of the physical connection can specify this parameter. The VLAN ID of two VBRs under the same physical connection cannot be the same.