![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.network.kotlin.ExpressRouteCircuitAuthorizationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin
import com.pulumi.azure.network.ExpressRouteCircuitAuthorizationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Manages an ExpressRoute Circuit Authorization.
* ## 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",
* },
* allowClassicOperations: false,
* tags: {
* environment: "Production",
* },
* });
* const exampleExpressRouteCircuitAuthorization = new azure.network.ExpressRouteCircuitAuthorization("example", {
* name: "exampleERCAuth",
* expressRouteCircuitName: exampleExpressRouteCircuit.name,
* resourceGroupName: example.name,
* });
* ```
* ```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={
* "tier": "Standard",
* "family": "MeteredData",
* },
* allow_classic_operations=False,
* tags={
* "environment": "Production",
* })
* example_express_route_circuit_authorization = azure.network.ExpressRouteCircuitAuthorization("example",
* name="exampleERCAuth",
* express_route_circuit_name=example_express_route_circuit.name,
* resource_group_name=example.name)
* ```
* ```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",
* },
* AllowClassicOperations = false,
* Tags =
* {
* { "environment", "Production" },
* },
* });
* var exampleExpressRouteCircuitAuthorization = new Azure.Network.ExpressRouteCircuitAuthorization("example", new()
* {
* Name = "exampleERCAuth",
* ExpressRouteCircuitName = exampleExpressRouteCircuit.Name,
* ResourceGroupName = example.Name,
* });
* });
* ```
* ```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
* }
* exampleExpressRouteCircuit, 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"),
* },
* AllowClassicOperations: pulumi.Bool(false),
* Tags: pulumi.StringMap{
* "environment": pulumi.String("Production"),
* },
* })
* if err != nil {
* return err
* }
* _, err = network.NewExpressRouteCircuitAuthorization(ctx, "example", &network.ExpressRouteCircuitAuthorizationArgs{
* Name: pulumi.String("exampleERCAuth"),
* ExpressRouteCircuitName: exampleExpressRouteCircuit.Name,
* ResourceGroupName: example.Name,
* })
* 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 com.pulumi.azure.network.ExpressRouteCircuitAuthorization;
* import com.pulumi.azure.network.ExpressRouteCircuitAuthorizationArgs;
* 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())
* .allowClassicOperations(false)
* .tags(Map.of("environment", "Production"))
* .build());
* var exampleExpressRouteCircuitAuthorization = new ExpressRouteCircuitAuthorization("exampleExpressRouteCircuitAuthorization", ExpressRouteCircuitAuthorizationArgs.builder()
* .name("exampleERCAuth")
* .expressRouteCircuitName(exampleExpressRouteCircuit.name())
* .resourceGroupName(example.name())
* .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
* allowClassicOperations: false
* tags:
* environment: Production
* exampleExpressRouteCircuitAuthorization:
* type: azure:network:ExpressRouteCircuitAuthorization
* name: example
* properties:
* name: exampleERCAuth
* expressRouteCircuitName: ${exampleExpressRouteCircuit.name}
* resourceGroupName: ${example.name}
* ```
*
* ## Import
* ExpressRoute Circuit Authorizations can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:network/expressRouteCircuitAuthorization:ExpressRouteCircuitAuthorization auth1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/expressRouteCircuits/myExpressRoute/authorizations/auth1
* ```
* @property expressRouteCircuitName The name of the Express Route Circuit in which to create the Authorization. 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 resourceGroupName The name of the resource group in which to create the ExpressRoute circuit. Changing this forces a new resource to be created.
*/
public data class ExpressRouteCircuitAuthorizationArgs(
public val expressRouteCircuitName: Output? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.network.ExpressRouteCircuitAuthorizationArgs =
com.pulumi.azure.network.ExpressRouteCircuitAuthorizationArgs.builder()
.expressRouteCircuitName(expressRouteCircuitName?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ExpressRouteCircuitAuthorizationArgs].
*/
@PulumiTagMarker
public class ExpressRouteCircuitAuthorizationArgsBuilder internal constructor() {
private var expressRouteCircuitName: Output? = null
private var name: Output? = null
private var resourceGroupName: Output? = null
/**
* @param value The name of the Express Route Circuit in which to create the Authorization. Changing this forces a new resource to be created.
*/
@JvmName("djtbtkpybrtorqiw")
public suspend fun expressRouteCircuitName(`value`: Output) {
this.expressRouteCircuitName = value
}
/**
* @param value The name of the ExpressRoute circuit. Changing this forces a new resource to be created.
*/
@JvmName("lhxetcdywmpfnsxy")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the resource group in which to create the ExpressRoute circuit. Changing this forces a new resource to be created.
*/
@JvmName("cmrjdpvdncsbombi")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the Express Route Circuit in which to create the Authorization. Changing this forces a new resource to be created.
*/
@JvmName("wchytuyvtaxsrqph")
public suspend fun expressRouteCircuitName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.expressRouteCircuitName = mapped
}
/**
* @param value The name of the ExpressRoute circuit. Changing this forces a new resource to be created.
*/
@JvmName("beenmftsnylmbiyj")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name of the resource group in which to create the ExpressRoute circuit. Changing this forces a new resource to be created.
*/
@JvmName("qhnpyofetmwarhid")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): ExpressRouteCircuitAuthorizationArgs = ExpressRouteCircuitAuthorizationArgs(
expressRouteCircuitName = expressRouteCircuitName,
name = name,
resourceGroupName = resourceGroupName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy