ExpressRouteGatewayArgs

data class ExpressRouteGatewayArgs(val allowNonVirtualWanTraffic: Output<Boolean>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scaleUnits: Output<Int>? = null, val tags: Output<Map<String, String>>? = null, val virtualHubId: Output<String>? = null) : ConvertibleToJava<ExpressRouteGatewayArgs>

Manages an ExpressRoute gateway.

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.VirtualWan;
import com.pulumi.azure.network.VirtualWanArgs;
import com.pulumi.azure.network.VirtualHub;
import com.pulumi.azure.network.VirtualHubArgs;
import com.pulumi.azure.network.ExpressRouteGateway;
import com.pulumi.azure.network.ExpressRouteGatewayArgs;
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 exampleVirtualWan = new VirtualWan("exampleVirtualWan", VirtualWanArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleVirtualHub = new VirtualHub("exampleVirtualHub", VirtualHubArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.virtualWanId(exampleVirtualWan.id())
.addressPrefix("10.0.1.0/24")
.build());
var exampleExpressRouteGateway = new ExpressRouteGateway("exampleExpressRouteGateway", ExpressRouteGatewayArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.virtualHubId(exampleVirtualHub.id())
.scaleUnits(1)
.tags(Map.of("environment", "Production"))
.build());
}
}

Import

ExpressRoute Gateways can be imported using the resource id, e.g.

$ pulumi import azure:network/expressRouteGateway:ExpressRouteGateway example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/expressRouteGateways/myExpressRouteGateway

Constructors

Link copied to clipboard
fun ExpressRouteGatewayArgs(allowNonVirtualWanTraffic: Output<Boolean>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, scaleUnits: Output<Int>? = null, tags: Output<Map<String, String>>? = null, virtualHubId: Output<String>? = null)

Functions

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

Properties

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

Specified whether this gateway accept traffic from non-Virtual WAN networks. Defaults to false.

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

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

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

The name of the ExpressRoute gateway. Changing this forces a new resource to be created.

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

The name of the resource group in which to create the ExpressRoute gateway. Changing this forces a new resource to be created.

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

The number of scale units with which to provision the ExpressRoute gateway. Each scale unit is equal to 2Gbps, with support for up to 10 scale units (20Gbps).

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.

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

The ID of a Virtual HUB within which the ExpressRoute gateway should be created. Changing this forces a new resource to be created.