import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Load Balancer Resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "LoadBalancerRG", * location: "West Europe", * }); * const examplePublicIp = new azure.network.PublicIp("example", { * name: "PublicIPForLB", * location: example.location, * resourceGroupName: example.name, * allocationMethod: "Static", * }); * const exampleLoadBalancer = new azure.lb.LoadBalancer("example", { * name: "TestLoadBalancer", * location: example.location, * resourceGroupName: example.name, * frontendIpConfigurations: [{ * name: "PublicIPAddress", * publicIpAddressId: examplePublicIp.id, * }], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2023-09-01 * * ## Import * * Load Balancers can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:lb/loadBalancer:LoadBalancer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/lb1 * ``` */ export declare class LoadBalancer extends pulumi.CustomResource { /** * Get an existing LoadBalancer 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?: LoadBalancerState, opts?: pulumi.CustomResourceOptions): LoadBalancer; /** * Returns true if the given object is an instance of LoadBalancer. 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 LoadBalancer; /** * Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created. */ readonly edgeZone: pulumi.Output; /** * One or more `frontendIpConfiguration` blocks as documented below. * * > **Note:** Azure Load Balancer does not allow the complete removal of all previously attached frontend configurations. If you have previously applied with one or more `frontendIpConfiguration` arguments, the removal of them all will result in a replacement (destroy/create) of the Load Balancer. */ readonly frontendIpConfigurations: pulumi.Output; /** * Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * Specifies the name of the Load Balancer. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Private IP Address to assign to the Load Balancer. */ readonly privateIpAddress: pulumi.Output; /** * The list of private IP address assigned to the load balancer in `frontendIpConfiguration` blocks, if any. */ readonly privateIpAddresses: pulumi.Output; /** * The ID of a Public IP Address which is associated with this Load Balancer. */ readonly publicIpAddressId: pulumi.Output; /** * The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The SKU of the Azure Load Balancer. Accepted values are `Basic`, `Standard` and `Gateway`. Defaults to `Standard`. Changing this forces a new resource to be created. * * > **Note:** The `Microsoft.Network/AllowGatewayLoadBalancer` feature is required to be registered in order to use the `Gateway` SKU. The feature can only be registered by the Azure service team, please submit an [Azure support ticket](https://azure.microsoft.com/en-us/support/create-ticket/) for that. */ readonly sku: pulumi.Output; /** * `skuTier` - (Optional) The SKU tier of this Load Balancer. Possible values are `Global` and `Regional`. Defaults to `Regional`. Changing this forces a new resource to be created. */ readonly skuTier: pulumi.Output; /** * The ID of the Subnet which is associated with the IP Configuration. */ readonly subnetId: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a LoadBalancer 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: LoadBalancerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LoadBalancer resources. */ export interface LoadBalancerState { /** * Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created. */ edgeZone?: pulumi.Input; /** * One or more `frontendIpConfiguration` blocks as documented below. * * > **Note:** Azure Load Balancer does not allow the complete removal of all previously attached frontend configurations. If you have previously applied with one or more `frontendIpConfiguration` arguments, the removal of them all will result in a replacement (destroy/create) of the Load Balancer. */ frontendIpConfigurations?: pulumi.Input[]>; /** * Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name of the Load Balancer. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Private IP Address to assign to the Load Balancer. */ privateIpAddress?: pulumi.Input; /** * The list of private IP address assigned to the load balancer in `frontendIpConfiguration` blocks, if any. */ privateIpAddresses?: pulumi.Input[]>; /** * The ID of a Public IP Address which is associated with this Load Balancer. */ publicIpAddressId?: pulumi.Input; /** * The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The SKU of the Azure Load Balancer. Accepted values are `Basic`, `Standard` and `Gateway`. Defaults to `Standard`. Changing this forces a new resource to be created. * * > **Note:** The `Microsoft.Network/AllowGatewayLoadBalancer` feature is required to be registered in order to use the `Gateway` SKU. The feature can only be registered by the Azure service team, please submit an [Azure support ticket](https://azure.microsoft.com/en-us/support/create-ticket/) for that. */ sku?: pulumi.Input; /** * `skuTier` - (Optional) The SKU tier of this Load Balancer. Possible values are `Global` and `Regional`. Defaults to `Regional`. Changing this forces a new resource to be created. */ skuTier?: pulumi.Input; /** * The ID of the Subnet which is associated with the IP Configuration. */ subnetId?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a LoadBalancer resource. */ export interface LoadBalancerArgs { /** * Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created. */ edgeZone?: pulumi.Input; /** * One or more `frontendIpConfiguration` blocks as documented below. * * > **Note:** Azure Load Balancer does not allow the complete removal of all previously attached frontend configurations. If you have previously applied with one or more `frontendIpConfiguration` arguments, the removal of them all will result in a replacement (destroy/create) of the Load Balancer. */ frontendIpConfigurations?: pulumi.Input[]>; /** * Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name of the Load Balancer. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The ID of a Public IP Address which is associated with this Load Balancer. */ publicIpAddressId?: pulumi.Input; /** * The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The SKU of the Azure Load Balancer. Accepted values are `Basic`, `Standard` and `Gateway`. Defaults to `Standard`. Changing this forces a new resource to be created. * * > **Note:** The `Microsoft.Network/AllowGatewayLoadBalancer` feature is required to be registered in order to use the `Gateway` SKU. The feature can only be registered by the Azure service team, please submit an [Azure support ticket](https://azure.microsoft.com/en-us/support/create-ticket/) for that. */ sku?: pulumi.Input; /** * `skuTier` - (Optional) The SKU tier of this Load Balancer. Possible values are `Global` and `Regional`. Defaults to `Regional`. Changing this forces a new resource to be created. */ skuTier?: pulumi.Input; /** * The ID of the Subnet which is associated with the IP Configuration. */ subnetId?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }