ExpressRouteCircuitConnectionArgs

data class ExpressRouteCircuitConnectionArgs(val addressPrefixIpv4: Output<String>? = null, val addressPrefixIpv6: Output<String>? = null, val authorizationKey: Output<String>? = null, val name: Output<String>? = null, val peerPeeringId: Output<String>? = null, val peeringId: Output<String>? = null) : ConvertibleToJava<ExpressRouteCircuitConnectionArgs>

Manages an Express Route Circuit Connection.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.ExpressRoutePort;
import com.pulumi.azure.network.ExpressRoutePortArgs;
import com.pulumi.azure.network.ExpressRouteCircuit;
import com.pulumi.azure.network.ExpressRouteCircuitArgs;
import com.pulumi.azure.network.inputs.ExpressRouteCircuitSkuArgs;
import com.pulumi.azure.network.ExpressRouteCircuitPeering;
import com.pulumi.azure.network.ExpressRouteCircuitPeeringArgs;
import com.pulumi.azure.network.ExpressRouteCircuitConnection;
import com.pulumi.azure.network.ExpressRouteCircuitConnectionArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleExpressRoutePort = new ExpressRoutePort("exampleExpressRoutePort", ExpressRoutePortArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.peeringLocation("Equinix-Seattle-SE2")
.bandwidthInGbps(10)
.encapsulation("Dot1Q")
.build());
var exampleExpressRouteCircuit = new ExpressRouteCircuit("exampleExpressRouteCircuit", ExpressRouteCircuitArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.expressRoutePortId(exampleExpressRoutePort.id())
.bandwidthInGbps(5)
.sku(ExpressRouteCircuitSkuArgs.builder()
.tier("Standard")
.family("MeteredData")
.build())
.build());
var example2ExpressRoutePort = new ExpressRoutePort("example2ExpressRoutePort", ExpressRoutePortArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.peeringLocation("Allied-Toronto-King-West")
.bandwidthInGbps(10)
.encapsulation("Dot1Q")
.build());
var example2ExpressRouteCircuit = new ExpressRouteCircuit("example2ExpressRouteCircuit", ExpressRouteCircuitArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.expressRoutePortId(example2ExpressRoutePort.id())
.bandwidthInGbps(5)
.sku(ExpressRouteCircuitSkuArgs.builder()
.tier("Standard")
.family("MeteredData")
.build())
.build());
var exampleExpressRouteCircuitPeering = new ExpressRouteCircuitPeering("exampleExpressRouteCircuitPeering", ExpressRouteCircuitPeeringArgs.builder()
.peeringType("AzurePrivatePeering")
.expressRouteCircuitName(exampleExpressRouteCircuit.name())
.resourceGroupName(exampleResourceGroup.name())
.sharedKey("ItsASecret")
.peerAsn(100)
.primaryPeerAddressPrefix("192.168.1.0/30")
.secondaryPeerAddressPrefix("192.168.1.0/30")
.vlanId(100)
.build());
var example2ExpressRouteCircuitPeering = new ExpressRouteCircuitPeering("example2ExpressRouteCircuitPeering", ExpressRouteCircuitPeeringArgs.builder()
.peeringType("AzurePrivatePeering")
.expressRouteCircuitName(example2ExpressRouteCircuit.name())
.resourceGroupName(exampleResourceGroup.name())
.sharedKey("ItsASecret")
.peerAsn(100)
.primaryPeerAddressPrefix("192.168.1.0/30")
.secondaryPeerAddressPrefix("192.168.1.0/30")
.vlanId(100)
.build());
var exampleExpressRouteCircuitConnection = new ExpressRouteCircuitConnection("exampleExpressRouteCircuitConnection", ExpressRouteCircuitConnectionArgs.builder()
.peeringId(exampleExpressRouteCircuitPeering.id())
.peerPeeringId(example2ExpressRouteCircuitPeering.id())
.addressPrefixIpv4("192.169.9.0/29")
.authorizationKey("846a1918-b7a2-4917-b43c-8c4cdaee006a")
.build());
}
}

Import

Express Route Circuit Connections can be imported using the resource id, e.g.

$ pulumi import azure:network/expressRouteCircuitConnection:ExpressRouteCircuitConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/expressRouteCircuits/circuit1/peerings/peering1/connections/connection1

Constructors

Link copied to clipboard
fun ExpressRouteCircuitConnectionArgs(addressPrefixIpv4: Output<String>? = null, addressPrefixIpv6: Output<String>? = null, authorizationKey: Output<String>? = null, name: Output<String>? = null, peerPeeringId: Output<String>? = null, peeringId: Output<String>? = null)

Functions

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

Properties

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

The IPv4 address space from which to allocate customer address for global reach. Changing this forces a new Express Route Circuit Connection to be created.

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

The IPv6 address space from which to allocate customer addresses for global reach.

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

The authorization key which is associated with the Express Route Circuit Connection.

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

The name which should be used for this Express Route Circuit Connection. Changing this forces a new Express Route Circuit Connection to be created.

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

The ID of the Express Route Circuit Private Peering that this Express Route Circuit Connection connects with. Changing this forces a new Express Route Circuit Connection to be created.

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

The ID of the peered Express Route Circuit Private Peering. Changing this forces a new Express Route Circuit Connection to be created.