
com.pulumi.azure.network.kotlin.ExpressRouteCircuitArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin
import com.pulumi.azure.network.ExpressRouteCircuitArgs.builder
import com.pulumi.azure.network.kotlin.inputs.ExpressRouteCircuitSkuArgs
import com.pulumi.azure.network.kotlin.inputs.ExpressRouteCircuitSkuArgsBuilder
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.Boolean
import kotlin.Double
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages an ExpressRoute circuit.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "exprtTest",
* location: "West Europe",
* });
* const exampleExpressRouteCircuit = new azure.network.ExpressRouteCircuit("example", {
* name: "expressRoute1",
* resourceGroupName: example.name,
* location: example.location,
* serviceProviderName: "Equinix",
* peeringLocation: "Silicon Valley",
* bandwidthInMbps: 50,
* sku: {
* tier: "Standard",
* family: "MeteredData",
* },
* tags: {
* environment: "Production",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="exprtTest",
* location="West Europe")
* example_express_route_circuit = azure.network.ExpressRouteCircuit("example",
* name="expressRoute1",
* resource_group_name=example.name,
* location=example.location,
* service_provider_name="Equinix",
* peering_location="Silicon Valley",
* bandwidth_in_mbps=50,
* sku=azure.network.ExpressRouteCircuitSkuArgs(
* tier="Standard",
* family="MeteredData",
* ),
* tags={
* "environment": "Production",
* })
* ```
* ```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 = "exprtTest",
* Location = "West Europe",
* });
* var exampleExpressRouteCircuit = new Azure.Network.ExpressRouteCircuit("example", new()
* {
* Name = "expressRoute1",
* ResourceGroupName = example.Name,
* Location = example.Location,
* ServiceProviderName = "Equinix",
* PeeringLocation = "Silicon Valley",
* BandwidthInMbps = 50,
* Sku = new Azure.Network.Inputs.ExpressRouteCircuitSkuArgs
* {
* Tier = "Standard",
* Family = "MeteredData",
* },
* Tags =
* {
* { "environment", "Production" },
* },
* });
* });
* ```
* ```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("exprtTest"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* _, err = network.NewExpressRouteCircuit(ctx, "example", &network.ExpressRouteCircuitArgs{
* Name: pulumi.String("expressRoute1"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* ServiceProviderName: pulumi.String("Equinix"),
* PeeringLocation: pulumi.String("Silicon Valley"),
* BandwidthInMbps: pulumi.Int(50),
* Sku: &network.ExpressRouteCircuitSkuArgs{
* Tier: pulumi.String("Standard"),
* Family: pulumi.String("MeteredData"),
* },
* Tags: pulumi.StringMap{
* "environment": pulumi.String("Production"),
* },
* })
* 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.ExpressRouteCircuit;
* import com.pulumi.azure.network.ExpressRouteCircuitArgs;
* import com.pulumi.azure.network.inputs.ExpressRouteCircuitSkuArgs;
* 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("exprtTest")
* .location("West Europe")
* .build());
* var exampleExpressRouteCircuit = new ExpressRouteCircuit("exampleExpressRouteCircuit", ExpressRouteCircuitArgs.builder()
* .name("expressRoute1")
* .resourceGroupName(example.name())
* .location(example.location())
* .serviceProviderName("Equinix")
* .peeringLocation("Silicon Valley")
* .bandwidthInMbps(50)
* .sku(ExpressRouteCircuitSkuArgs.builder()
* .tier("Standard")
* .family("MeteredData")
* .build())
* .tags(Map.of("environment", "Production"))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: exprtTest
* location: West Europe
* exampleExpressRouteCircuit:
* type: azure:network:ExpressRouteCircuit
* name: example
* properties:
* name: expressRoute1
* resourceGroupName: ${example.name}
* location: ${example.location}
* serviceProviderName: Equinix
* peeringLocation: Silicon Valley
* bandwidthInMbps: 50
* sku:
* tier: Standard
* family: MeteredData
* tags:
* environment: Production
* ```
*
* ## Import
* ExpressRoute circuits can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:network/expressRouteCircuit:ExpressRouteCircuit myExpressRoute /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/expressRouteCircuits/myExpressRoute
* ```
* @property allowClassicOperations Allow the circuit to interact with classic (RDFE) resources. Defaults to `false`.
* @property authorizationKey The authorization key. This can be used to set up an ExpressRoute Circuit with an ExpressRoute Port from another subscription.
* @property bandwidthInGbps The bandwidth in Gbps of the circuit being created on the Express Route Port.
* > **NOTE:** The `express_route_port_id` and the `bandwidth_in_gbps` should be set together and they conflict with `service_provider_name`, `peering_location` and `bandwidth_in_mbps`.
* @property bandwidthInMbps The bandwidth in Mbps of the circuit being created on the Service Provider.
* > **NOTE:** Once you increase your bandwidth, you will not be able to decrease it to its previous value.
* > **NOTE:** The `service_provider_name`, the `peering_location` and the `bandwidth_in_mbps` should be set together and they conflict with `express_route_port_id` and `bandwidth_in_gbps`.
* @property expressRoutePortId The ID of the Express Route Port this Express Route Circuit is based on. Changing this forces a new resource to be created.
* @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
* @property name The name of the ExpressRoute circuit. Changing this forces a new resource to be created.
* @property peeringLocation The name of the peering location and **not** the Azure resource location. Changing this forces a new resource to be created.
* @property resourceGroupName The name of the resource group in which to create the ExpressRoute circuit. Changing this forces a new resource to be created.
* @property serviceProviderName The name of the ExpressRoute Service Provider. Changing this forces a new resource to be created.
* @property sku A `sku` block for the ExpressRoute circuit as documented below.
* @property tags A mapping of tags to assign to the resource.
*/
public data class ExpressRouteCircuitArgs(
public val allowClassicOperations: Output? = null,
public val authorizationKey: Output? = null,
public val bandwidthInGbps: Output? = null,
public val bandwidthInMbps: Output? = null,
public val expressRoutePortId: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val peeringLocation: Output? = null,
public val resourceGroupName: Output? = null,
public val serviceProviderName: Output? = null,
public val sku: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy