import * as pulumi from "@pulumi/pulumi"; /** * Manages a Bgp Connection for a Route Server * * ## 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 Europe", * }); * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", { * name: "example-vn", * addressSpaces: ["10.0.0.0/16"], * resourceGroupName: example.name, * location: example.location, * tags: { * environment: "Production", * }, * }); * const exampleSubnet = new azure.network.Subnet("example", { * name: "RouteServerSubnet", * virtualNetworkName: exampleVirtualNetwork.name, * resourceGroupName: example.name, * addressPrefixes: ["10.0.1.0/24"], * }); * const examplePublicIp = new azure.network.PublicIp("example", { * name: "example-pip", * resourceGroupName: example.name, * location: example.location, * allocationMethod: "Static", * sku: "Standard", * }); * const exampleRouteServer = new azure.network.RouteServer("example", { * name: "example-routerserver", * resourceGroupName: example.name, * location: example.location, * sku: "Standard", * publicIpAddressId: examplePublicIp.id, * subnetId: exampleSubnet.id, * branchToBranchTrafficEnabled: true, * }); * const exampleRouteServerBgpConnection = new azure.network.RouteServerBgpConnection("example", { * name: "example-rs-bgpconnection", * routeServerId: exampleRouteServer.id, * peerAsn: 65501, * peerIp: "169.254.21.5", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## Import * * Route Server Bgp Connections can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/routeServerBgpConnection:RouteServerBgpConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/virtualHubs/routeServer1/bgpConnections/connection1 * ``` */ export declare class RouteServerBgpConnection extends pulumi.CustomResource { /** * Get an existing RouteServerBgpConnection resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: RouteServerBgpConnectionState, opts?: pulumi.CustomResourceOptions): RouteServerBgpConnection; /** * Returns true if the given object is an instance of RouteServerBgpConnection. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is RouteServerBgpConnection; /** * The name which should be used for this Route Server Bgp Connection. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The peer autonomous system number for the Route Server Bgp Connection. Changing this forces a new resource to be created. */ readonly peerAsn: pulumi.Output; /** * The peer ip address for the Route Server Bgp Connection. Changing this forces a new resource to be created. */ readonly peerIp: pulumi.Output; /** * The ID of the Route Server within which this Bgp connection should be created. Changing this forces a new resource to be created. */ readonly routeServerId: pulumi.Output; /** * Create a RouteServerBgpConnection resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: RouteServerBgpConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RouteServerBgpConnection resources. */ export interface RouteServerBgpConnectionState { /** * The name which should be used for this Route Server Bgp Connection. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The peer autonomous system number for the Route Server Bgp Connection. Changing this forces a new resource to be created. */ peerAsn?: pulumi.Input; /** * The peer ip address for the Route Server Bgp Connection. Changing this forces a new resource to be created. */ peerIp?: pulumi.Input; /** * The ID of the Route Server within which this Bgp connection should be created. Changing this forces a new resource to be created. */ routeServerId?: pulumi.Input; } /** * The set of arguments for constructing a RouteServerBgpConnection resource. */ export interface RouteServerBgpConnectionArgs { /** * The name which should be used for this Route Server Bgp Connection. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The peer autonomous system number for the Route Server Bgp Connection. Changing this forces a new resource to be created. */ peerAsn: pulumi.Input; /** * The peer ip address for the Route Server Bgp Connection. Changing this forces a new resource to be created. */ peerIp: pulumi.Input; /** * The ID of the Route Server within which this Bgp connection should be created. Changing this forces a new resource to be created. */ routeServerId: pulumi.Input; }