import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a VPN Site. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-rg", * location: "West Europe", * }); * const exampleVirtualWan = new azure.network.VirtualWan("example", { * name: "example-vwan", * resourceGroupName: example.name, * location: example.location, * }); * const exampleVpnSite = new azure.network.VpnSite("example", { * name: "site1", * resourceGroupName: example.name, * location: example.location, * virtualWanId: exampleVirtualWan.id, * addressCidrs: ["10.0.0.0/24"], * links: [{ * name: "link1", * ipAddress: "10.0.0.1", * }], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## Import * * VPN Sites can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/vpnSite:VpnSite example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/vpnSites/site1 * ``` */ export declare class VpnSite extends pulumi.CustomResource { /** * Get an existing VpnSite 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?: VpnSiteState, opts?: pulumi.CustomResourceOptions): VpnSite; /** * Returns true if the given object is an instance of VpnSite. 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 VpnSite; /** * Specifies a list of IP address CIDRs that are located on your on-premises site. Traffic destined for these address spaces is routed to your local site. * * > **Note:** The `addressCidrs` has to be set when the `link.bgp` isn't specified. */ readonly addressCidrs: pulumi.Output; /** * The model of the VPN device. */ readonly deviceModel: pulumi.Output; /** * The name of the VPN device vendor. */ readonly deviceVendor: pulumi.Output; /** * One or more `link` blocks as defined below. */ readonly links: pulumi.Output; /** * The Azure Region where the VPN Site should exist. Changing this forces a new VPN Site to be created. */ readonly location: pulumi.Output; /** * The name which should be used for this VPN Site. Changing this forces a new VPN Site to be created. */ readonly name: pulumi.Output; /** * An `o365Policy` block as defined below. */ readonly o365Policy: pulumi.Output; /** * The name of the Resource Group where the VPN Site should exist. Changing this forces a new VPN Site to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags which should be assigned to the VPN Site. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The ID of the Virtual Wan where this VPN site resides in. Changing this forces a new VPN Site to be created. */ readonly virtualWanId: pulumi.Output; /** * Create a VpnSite 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: VpnSiteArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VpnSite resources. */ export interface VpnSiteState { /** * Specifies a list of IP address CIDRs that are located on your on-premises site. Traffic destined for these address spaces is routed to your local site. * * > **Note:** The `addressCidrs` has to be set when the `link.bgp` isn't specified. */ addressCidrs?: pulumi.Input[]>; /** * The model of the VPN device. */ deviceModel?: pulumi.Input; /** * The name of the VPN device vendor. */ deviceVendor?: pulumi.Input; /** * One or more `link` blocks as defined below. */ links?: pulumi.Input[]>; /** * The Azure Region where the VPN Site should exist. Changing this forces a new VPN Site to be created. */ location?: pulumi.Input; /** * The name which should be used for this VPN Site. Changing this forces a new VPN Site to be created. */ name?: pulumi.Input; /** * An `o365Policy` block as defined below. */ o365Policy?: pulumi.Input; /** * The name of the Resource Group where the VPN Site should exist. Changing this forces a new VPN Site to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags which should be assigned to the VPN Site. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The ID of the Virtual Wan where this VPN site resides in. Changing this forces a new VPN Site to be created. */ virtualWanId?: pulumi.Input; } /** * The set of arguments for constructing a VpnSite resource. */ export interface VpnSiteArgs { /** * Specifies a list of IP address CIDRs that are located on your on-premises site. Traffic destined for these address spaces is routed to your local site. * * > **Note:** The `addressCidrs` has to be set when the `link.bgp` isn't specified. */ addressCidrs?: pulumi.Input[]>; /** * The model of the VPN device. */ deviceModel?: pulumi.Input; /** * The name of the VPN device vendor. */ deviceVendor?: pulumi.Input; /** * One or more `link` blocks as defined below. */ links?: pulumi.Input[]>; /** * The Azure Region where the VPN Site should exist. Changing this forces a new VPN Site to be created. */ location?: pulumi.Input; /** * The name which should be used for this VPN Site. Changing this forces a new VPN Site to be created. */ name?: pulumi.Input; /** * An `o365Policy` block as defined below. */ o365Policy?: pulumi.Input; /** * The name of the Resource Group where the VPN Site should exist. Changing this forces a new VPN Site to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags which should be assigned to the VPN Site. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The ID of the Virtual Wan where this VPN site resides in. Changing this forces a new VPN Site to be created. */ virtualWanId: pulumi.Input; }