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.azurenative.network.kotlin
import com.pulumi.azurenative.network.VirtualRouterPeeringArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Virtual Router Peering resource.
* Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2022-01-01.
* Other available API versions: 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01.
* ## Example Usage
* ### Create Virtual Router Peering
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var virtualRouterPeering = new AzureNative.Network.VirtualRouterPeering("virtualRouterPeering", new()
* {
* PeerAsn = 20000,
* PeerIp = "192.168.1.5",
* PeeringName = "peering1",
* ResourceGroupName = "rg1",
* VirtualRouterName = "virtualRouter",
* });
* });
* ```
* ```go
* package main
* import (
* network "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.NewVirtualRouterPeering(ctx, "virtualRouterPeering", &network.VirtualRouterPeeringArgs{
* PeerAsn: pulumi.Float64(20000),
* PeerIp: pulumi.String("192.168.1.5"),
* PeeringName: pulumi.String("peering1"),
* ResourceGroupName: pulumi.String("rg1"),
* VirtualRouterName: pulumi.String("virtualRouter"),
* })
* 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.azurenative.network.VirtualRouterPeering;
* import com.pulumi.azurenative.network.VirtualRouterPeeringArgs;
* 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 virtualRouterPeering = new VirtualRouterPeering("virtualRouterPeering", VirtualRouterPeeringArgs.builder()
* .peerAsn(20000)
* .peerIp("192.168.1.5")
* .peeringName("peering1")
* .resourceGroupName("rg1")
* .virtualRouterName("virtualRouter")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:network:VirtualRouterPeering peering1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName}
* ```
* @property id Resource ID.
* @property name Name of the virtual router peering that is unique within a virtual router.
* @property peerAsn Peer ASN.
* @property peerIp Peer IP.
* @property peeringName The name of the Virtual Router Peering.
* @property resourceGroupName The name of the resource group.
* @property virtualRouterName The name of the Virtual Router.
*/
public data class VirtualRouterPeeringArgs(
public val id: Output? = null,
public val name: Output? = null,
public val peerAsn: Output? = null,
public val peerIp: Output? = null,
public val peeringName: Output? = null,
public val resourceGroupName: Output? = null,
public val virtualRouterName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.VirtualRouterPeeringArgs =
com.pulumi.azurenative.network.VirtualRouterPeeringArgs.builder()
.id(id?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.peerAsn(peerAsn?.applyValue({ args0 -> args0 }))
.peerIp(peerIp?.applyValue({ args0 -> args0 }))
.peeringName(peeringName?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.virtualRouterName(virtualRouterName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VirtualRouterPeeringArgs].
*/
@PulumiTagMarker
public class VirtualRouterPeeringArgsBuilder internal constructor() {
private var id: Output? = null
private var name: Output? = null
private var peerAsn: Output? = null
private var peerIp: Output? = null
private var peeringName: Output? = null
private var resourceGroupName: Output? = null
private var virtualRouterName: Output? = null
/**
* @param value Resource ID.
*/
@JvmName("gbpgvdbsrcwouovd")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value Name of the virtual router peering that is unique within a virtual router.
*/
@JvmName("eovqgsiikwwysaku")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Peer ASN.
*/
@JvmName("ichnyyajjrlybext")
public suspend fun peerAsn(`value`: Output) {
this.peerAsn = value
}
/**
* @param value Peer IP.
*/
@JvmName("efdytbcuobxbwuno")
public suspend fun peerIp(`value`: Output) {
this.peerIp = value
}
/**
* @param value The name of the Virtual Router Peering.
*/
@JvmName("sjqliivhtyhsfdqh")
public suspend fun peeringName(`value`: Output) {
this.peeringName = value
}
/**
* @param value The name of the resource group.
*/
@JvmName("mjpaxkcxogmuieei")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the Virtual Router.
*/
@JvmName("pvgknkeggubwbdrj")
public suspend fun virtualRouterName(`value`: Output) {
this.virtualRouterName = value
}
/**
* @param value Resource ID.
*/
@JvmName("otiarayfgbtfxdsf")
public suspend fun id(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value Name of the virtual router peering that is unique within a virtual router.
*/
@JvmName("ssavtklibmxswcig")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Peer ASN.
*/
@JvmName("eqvdvrgexuxkefbr")
public suspend fun peerAsn(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.peerAsn = mapped
}
/**
* @param value Peer IP.
*/
@JvmName("yuxulgqdoyksrjsb")
public suspend fun peerIp(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.peerIp = mapped
}
/**
* @param value The name of the Virtual Router Peering.
*/
@JvmName("isysonjwphrdepjh")
public suspend fun peeringName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.peeringName = mapped
}
/**
* @param value The name of the resource group.
*/
@JvmName("trxujibeuflnnujn")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The name of the Virtual Router.
*/
@JvmName("exnpdfjaholqxgxh")
public suspend fun virtualRouterName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualRouterName = mapped
}
internal fun build(): VirtualRouterPeeringArgs = VirtualRouterPeeringArgs(
id = id,
name = name,
peerAsn = peerAsn,
peerIp = peerIp,
peeringName = peeringName,
resourceGroupName = resourceGroupName,
virtualRouterName = virtualRouterName,
)
}