BgpPeerArgs

data class BgpPeerArgs(val bgpPeerName: Output<String>? = null, val myAsn: Output<Int>? = null, val peerAddress: Output<String>? = null, val peerAsn: Output<Int>? = null, val resourceUri: Output<String>? = null) : ConvertibleToJava<BgpPeerArgs>

A BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) Uses Azure REST API version 2024-03-01. In version 2.x of the Azure Native provider, it used API version 2024-03-01.

Example Usage

BgpPeers_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var bgpPeer = new AzureNative.KubernetesRuntime.BgpPeer("bgpPeer", new()
{
BgpPeerName = "testpeer",
MyAsn = 64500,
PeerAddress = "10.0.0.1",
PeerAsn = 64501,
ResourceUri = "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1",
});
});
package main
import (
kubernetesruntime "github.com/pulumi/pulumi-azure-native-sdk/kubernetesruntime/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kubernetesruntime.NewBgpPeer(ctx, "bgpPeer", &kubernetesruntime.BgpPeerArgs{
BgpPeerName: pulumi.String("testpeer"),
MyAsn: pulumi.Int(64500),
PeerAddress: pulumi.String("10.0.0.1"),
PeerAsn: pulumi.Int(64501),
ResourceUri: pulumi.String("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1"),
})
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.azurenative.kubernetesruntime.BgpPeer;
import com.pulumi.azurenative.kubernetesruntime.BgpPeerArgs;
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 bgpPeer = new BgpPeer("bgpPeer", BgpPeerArgs.builder()
.bgpPeerName("testpeer")
.myAsn(64500)
.peerAddress("10.0.0.1")
.peerAsn(64501)
.resourceUri("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:kubernetesruntime:BgpPeer testpeer /{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}

Constructors

Link copied to clipboard
constructor(bgpPeerName: Output<String>? = null, myAsn: Output<Int>? = null, peerAddress: Output<String>? = null, peerAsn: Output<Int>? = null, resourceUri: Output<String>? = null)

Properties

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

The name of the BgpPeer

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

My ASN

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

Peer Address

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

Peer ASN

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

The fully qualified Azure Resource manager identifier of the resource.

Functions

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