ExpressRoutePortArgs

data class ExpressRoutePortArgs(val bandwidthInGbps: Output<Int>? = null, val billingType: Output<String>? = null, val encapsulation: Output<String>? = null, val identity: Output<ExpressRoutePortIdentityArgs>? = null, val link1: Output<ExpressRoutePortLink1Args>? = null, val link2: Output<ExpressRoutePortLink2Args>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val peeringLocation: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ExpressRoutePortArgs>

Manages a Express Route Port.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West US",
});
const exampleExpressRoutePort = new azure.network.ExpressRoutePort("example", {
name: "port1",
resourceGroupName: example.name,
location: example.location,
peeringLocation: "Airtel-Chennai-CLS",
bandwidthInGbps: 10,
encapsulation: "Dot1Q",
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West US")
example_express_route_port = azure.network.ExpressRoutePort("example",
name="port1",
resource_group_name=example.name,
location=example.location,
peering_location="Airtel-Chennai-CLS",
bandwidth_in_gbps=10,
encapsulation="Dot1Q")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West US",
});
var exampleExpressRoutePort = new Azure.Network.ExpressRoutePort("example", new()
{
Name = "port1",
ResourceGroupName = example.Name,
Location = example.Location,
PeeringLocation = "Airtel-Chennai-CLS",
BandwidthInGbps = 10,
Encapsulation = "Dot1Q",
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West US"),
})
if err != nil {
return err
}
_, err = network.NewExpressRoutePort(ctx, "example", &network.ExpressRoutePortArgs{
Name: pulumi.String("port1"),
ResourceGroupName: example.Name,
Location: example.Location,
PeeringLocation: pulumi.String("Airtel-Chennai-CLS"),
BandwidthInGbps: pulumi.Int(10),
Encapsulation: pulumi.String("Dot1Q"),
})
if err != nil {
return err
}
return nil
})
}
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 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West US")
.build());
var exampleExpressRoutePort = new ExpressRoutePort("exampleExpressRoutePort", ExpressRoutePortArgs.builder()
.name("port1")
.resourceGroupName(example.name())
.location(example.location())
.peeringLocation("Airtel-Chennai-CLS")
.bandwidthInGbps(10)
.encapsulation("Dot1Q")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West US
exampleExpressRoutePort:
type: azure:network:ExpressRoutePort
name: example
properties:
name: port1
resourceGroupName: ${example.name}
location: ${example.location}
peeringLocation: Airtel-Chennai-CLS
bandwidthInGbps: 10
encapsulation: Dot1Q

Import

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

$ pulumi import azure:network/expressRoutePort:ExpressRoutePort example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/expressRoutePorts/port1

Constructors

Link copied to clipboard
constructor(bandwidthInGbps: Output<Int>? = null, billingType: Output<String>? = null, encapsulation: Output<String>? = null, identity: Output<ExpressRoutePortIdentityArgs>? = null, link1: Output<ExpressRoutePortLink1Args>? = null, link2: Output<ExpressRoutePortLink2Args>? = null, location: Output<String>? = null, name: Output<String>? = null, peeringLocation: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.

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

The billing type of the Express Route Port. Possible values are MeteredData and UnlimitedData. Defaults to MeteredData.

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

The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: Dot1Q, QinQ.

Link copied to clipboard

An identity block as defined below.

Link copied to clipboard
val link1: Output<ExpressRoutePortLink1Args>? = null

A list of link blocks as defined below.

Link copied to clipboard
val link2: Output<ExpressRoutePortLink2Args>? = null

A list of link blocks as defined below.

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

The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.

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

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

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

The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.

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

The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.

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

A mapping of tags which should be assigned to the Express Route Port.

Functions

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