Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin
import com.pulumi.azure.network.ExpressRoutePortArgs.builder
import com.pulumi.azure.network.kotlin.inputs.ExpressRoutePortIdentityArgs
import com.pulumi.azure.network.kotlin.inputs.ExpressRoutePortIdentityArgsBuilder
import com.pulumi.azure.network.kotlin.inputs.ExpressRoutePortLink1Args
import com.pulumi.azure.network.kotlin.inputs.ExpressRoutePortLink1ArgsBuilder
import com.pulumi.azure.network.kotlin.inputs.ExpressRoutePortLink2Args
import com.pulumi.azure.network.kotlin.inputs.ExpressRoutePortLink2ArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages a Express Route Port.
* ## Example Usage
*
* ```typescript
* 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",
* });
* ```
* ```python
* 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")
* ```
* ```csharp
* 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",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* 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.
* ```sh
* $ pulumi import azure:network/expressRoutePort:ExpressRoutePort example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/expressRoutePorts/port1
* ```
* @property bandwidthInGbps Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
* @property billingType The billing type of the Express Route Port. Possible values are `MeteredData` and `UnlimitedData`.
* @property encapsulation 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`.
* @property identity An `identity` block as defined below.
* @property link1 A list of `link` blocks as defined below.
* @property link2 A list of `link` blocks as defined below.
* @property location The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
* @property name The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
* @property peeringLocation 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.
* @property resourceGroupName The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
* @property tags A mapping of tags which should be assigned to the Express Route Port.
*/
public data class ExpressRoutePortArgs(
public val bandwidthInGbps: Output? = null,
public val billingType: Output? = null,
public val encapsulation: Output? = null,
public val identity: Output? = null,
public val link1: Output? = null,
public val link2: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val peeringLocation: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output