import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Load Balancer Backend Address Pool. * * > **Note:** When using this resource, the Load Balancer needs to have a FrontEnd IP Configuration Attached * * ## 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, * }], * }); * const exampleBackendAddressPool = new azure.lb.BackendAddressPool("example", { * loadbalancerId: exampleLoadBalancer.id, * name: "BackEndAddressPool", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2023-09-01 * * ## Import * * Load Balancer Backend Address Pools can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:lb/backendAddressPool:BackendAddressPool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/pool1 * ``` */ export declare class BackendAddressPool extends pulumi.CustomResource { /** * Get an existing BackendAddressPool 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?: BackendAddressPoolState, opts?: pulumi.CustomResourceOptions): BackendAddressPool; /** * Returns true if the given object is an instance of BackendAddressPool. 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 BackendAddressPool; /** * The Backend IP Configurations associated with this Backend Address Pool. */ readonly backendIpConfigurations: pulumi.Output; /** * An array of the Load Balancing Inbound NAT Rules associated with this Backend Address Pool. */ readonly inboundNatRules: pulumi.Output; /** * The Load Balancing Rules associated with this Backend Address Pool. */ readonly loadBalancingRules: pulumi.Output; /** * The ID of the Load Balancer in which to create the Backend Address Pool. Changing this forces a new resource to be created. */ readonly loadbalancerId: pulumi.Output; /** * Specifies the name of the Backend Address Pool. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * An array of the Load Balancing Outbound Rules associated with this Backend Address Pool. */ readonly outboundRules: pulumi.Output; /** * The backend address synchronous mode for the Backend Address Pool. Possible values are `Automatic` and `Manual`. This is required with `virtualNetworkId`. Changing this forces a new resource to be created. * * > **Note:** The `synchronousMode` can set only for Load Balancer with `Standard` SKU. */ readonly synchronousMode: pulumi.Output; /** * One or more `tunnelInterface` blocks as defined below. */ readonly tunnelInterfaces: pulumi.Output; /** * The ID of the Virtual Network within which the Backend Address Pool should exist. */ readonly virtualNetworkId: pulumi.Output; /** * Create a BackendAddressPool 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: BackendAddressPoolArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BackendAddressPool resources. */ export interface BackendAddressPoolState { /** * The Backend IP Configurations associated with this Backend Address Pool. */ backendIpConfigurations?: pulumi.Input[]>; /** * An array of the Load Balancing Inbound NAT Rules associated with this Backend Address Pool. */ inboundNatRules?: pulumi.Input[]>; /** * The Load Balancing Rules associated with this Backend Address Pool. */ loadBalancingRules?: pulumi.Input[]>; /** * The ID of the Load Balancer in which to create the Backend Address Pool. Changing this forces a new resource to be created. */ loadbalancerId?: pulumi.Input; /** * Specifies the name of the Backend Address Pool. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * An array of the Load Balancing Outbound Rules associated with this Backend Address Pool. */ outboundRules?: pulumi.Input[]>; /** * The backend address synchronous mode for the Backend Address Pool. Possible values are `Automatic` and `Manual`. This is required with `virtualNetworkId`. Changing this forces a new resource to be created. * * > **Note:** The `synchronousMode` can set only for Load Balancer with `Standard` SKU. */ synchronousMode?: pulumi.Input; /** * One or more `tunnelInterface` blocks as defined below. */ tunnelInterfaces?: pulumi.Input[]>; /** * The ID of the Virtual Network within which the Backend Address Pool should exist. */ virtualNetworkId?: pulumi.Input; } /** * The set of arguments for constructing a BackendAddressPool resource. */ export interface BackendAddressPoolArgs { /** * The ID of the Load Balancer in which to create the Backend Address Pool. Changing this forces a new resource to be created. */ loadbalancerId: pulumi.Input; /** * Specifies the name of the Backend Address Pool. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The backend address synchronous mode for the Backend Address Pool. Possible values are `Automatic` and `Manual`. This is required with `virtualNetworkId`. Changing this forces a new resource to be created. * * > **Note:** The `synchronousMode` can set only for Load Balancer with `Standard` SKU. */ synchronousMode?: pulumi.Input; /** * One or more `tunnelInterface` blocks as defined below. */ tunnelInterfaces?: pulumi.Input[]>; /** * The ID of the Virtual Network within which the Backend Address Pool should exist. */ virtualNetworkId?: pulumi.Input; }