Express Route Port Args
    data class ExpressRoutePortArgs(val bandwidthInGbps: Output<Int>? = null, val billingType: Output<Either<String, ExpressRoutePortsBillingType>>? = null, val encapsulation: Output<Either<String, ExpressRoutePortsEncapsulation>>? = null, val expressRoutePortName: Output<String>? = null, val id: Output<String>? = null, val identity: Output<ManagedServiceIdentityArgs>? = null, val links: Output<List<ExpressRouteLinkArgs>>? = null, val location: Output<String>? = null, val peeringLocation: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ExpressRoutePortArgs> 
ExpressRoutePort resource definition. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01. Other available API versions: 2019-08-01, 2023-04-01, 2023-05-01, 2023-06-01.
Example Usage
ExpressRoutePortCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var expressRoutePort = new AzureNative.Network.ExpressRoutePort("expressRoutePort", new()
    {
        BandwidthInGbps = 100,
        BillingType = "UnlimitedData",
        Encapsulation = "QinQ",
        ExpressRoutePortName = "portName",
        Location = "westus",
        PeeringLocation = "peeringLocationName",
        ResourceGroupName = "rg1",
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/network/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewExpressRoutePort(ctx, "expressRoutePort", &network.ExpressRoutePortArgs{
			BandwidthInGbps:      pulumi.Int(100),
			BillingType:          pulumi.String("UnlimitedData"),
			Encapsulation:        pulumi.String("QinQ"),
			ExpressRoutePortName: pulumi.String("portName"),
			Location:             pulumi.String("westus"),
			PeeringLocation:      pulumi.String("peeringLocationName"),
			ResourceGroupName:    pulumi.String("rg1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.ExpressRoutePort;
import com.pulumi.azurenative.network.ExpressRoutePortArgs;
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 expressRoutePort = new ExpressRoutePort("expressRoutePort", ExpressRoutePortArgs.builder()
            .bandwidthInGbps(100)
            .billingType("UnlimitedData")
            .encapsulation("QinQ")
            .expressRoutePortName("portName")
            .location("westus")
            .peeringLocation("peeringLocationName")
            .resourceGroupName("rg1")
            .build());
    }
}Content copied to clipboard
ExpressRoutePortUpdateLink
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var expressRoutePort = new AzureNative.Network.ExpressRoutePort("expressRoutePort", new()
    {
        BandwidthInGbps = 100,
        BillingType = "UnlimitedData",
        Encapsulation = "QinQ",
        ExpressRoutePortName = "portName",
        Links = new[]
        {
            new AzureNative.Network.Inputs.ExpressRouteLinkArgs
            {
                AdminState = "Enabled",
                Name = "link1",
            },
        },
        Location = "westus",
        PeeringLocation = "peeringLocationName",
        ResourceGroupName = "rg1",
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/network/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewExpressRoutePort(ctx, "expressRoutePort", &network.ExpressRoutePortArgs{
			BandwidthInGbps:      pulumi.Int(100),
			BillingType:          pulumi.String("UnlimitedData"),
			Encapsulation:        pulumi.String("QinQ"),
			ExpressRoutePortName: pulumi.String("portName"),
			Links: []network.ExpressRouteLinkArgs{
				{
					AdminState: pulumi.String("Enabled"),
					Name:       pulumi.String("link1"),
				},
			},
			Location:          pulumi.String("westus"),
			PeeringLocation:   pulumi.String("peeringLocationName"),
			ResourceGroupName: pulumi.String("rg1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.ExpressRoutePort;
import com.pulumi.azurenative.network.ExpressRoutePortArgs;
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 expressRoutePort = new ExpressRoutePort("expressRoutePort", ExpressRoutePortArgs.builder()
            .bandwidthInGbps(100)
            .billingType("UnlimitedData")
            .encapsulation("QinQ")
            .expressRoutePortName("portName")
            .links(Map.ofEntries(
                Map.entry("adminState", "Enabled"),
                Map.entry("name", "link1")
            ))
            .location("westus")
            .peeringLocation("peeringLocationName")
            .resourceGroupName("rg1")
            .build());
    }
}Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:ExpressRoutePort portName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}Content copied to clipboard
Constructors
Link copied to clipboard
                fun ExpressRoutePortArgs(bandwidthInGbps: Output<Int>? = null, billingType: Output<Either<String, ExpressRoutePortsBillingType>>? = null, encapsulation: Output<Either<String, ExpressRoutePortsEncapsulation>>? = null, expressRoutePortName: Output<String>? = null, id: Output<String>? = null, identity: Output<ManagedServiceIdentityArgs>? = null, links: Output<List<ExpressRouteLinkArgs>>? = null, location: Output<String>? = null, peeringLocation: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)