import * as pulumi from "@pulumi/pulumi"; /** * Creates a backend server group (farm) to be used by loadbalancing frontend(s) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const lb = ovh.IpLoadBalancing.getIpLoadBalancing({ * serviceName: "ip-1.2.3.4", * state: "ok", * }); * const farmName = new ovh.iploadbalancing.UdpFarm("farm_name", { * serviceName: lb.then(lb => lb.serviceName), * displayName: "ingress-8080-gra", * zone: "gra", * port: 80, * }); * ``` * * ## Import * * UDP Farm can be imported using the following format `service_name` and the `id` of the farm, separated by "/" e.g. * * bash * * ```sh * $ pulumi import ovh:IpLoadBalancing/udpFarm:UdpFarm farmname service_name/farm_id * ``` */ export declare class UdpFarm extends pulumi.CustomResource { /** * Get an existing UdpFarm 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?: UdpFarmState, opts?: pulumi.CustomResourceOptions): UdpFarm; /** * Returns true if the given object is an instance of UdpFarm. 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 UdpFarm; /** * Readable label for loadbalancer farm */ readonly displayName: pulumi.Output; /** * Id of your farm. */ readonly farmId: pulumi.Output; /** * Port attached to your farm ([1..49151]). Inherited from frontend if null */ readonly port: pulumi.Output; /** * The internal name of your IP load balancing */ readonly serviceName: pulumi.Output; /** * Internal Load Balancer identifier of the vRack private network to attach to your farm, mandatory when your Load Balancer is attached to a vRack */ readonly vrackNetworkId: pulumi.Output; /** * Zone where the farm will be defined (ie. `gra`, `bhs` also supports `all`) */ readonly zone: pulumi.Output; /** * Create a UdpFarm 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: UdpFarmArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering UdpFarm resources. */ export interface UdpFarmState { /** * Readable label for loadbalancer farm */ displayName?: pulumi.Input; /** * Id of your farm. */ farmId?: pulumi.Input; /** * Port attached to your farm ([1..49151]). Inherited from frontend if null */ port?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName?: pulumi.Input; /** * Internal Load Balancer identifier of the vRack private network to attach to your farm, mandatory when your Load Balancer is attached to a vRack */ vrackNetworkId?: pulumi.Input; /** * Zone where the farm will be defined (ie. `gra`, `bhs` also supports `all`) */ zone?: pulumi.Input; } /** * The set of arguments for constructing a UdpFarm resource. */ export interface UdpFarmArgs { /** * Readable label for loadbalancer farm */ displayName?: pulumi.Input; /** * Port attached to your farm ([1..49151]). Inherited from frontend if null */ port: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName: pulumi.Input; /** * Internal Load Balancer identifier of the vRack private network to attach to your farm, mandatory when your Load Balancer is attached to a vRack */ vrackNetworkId?: pulumi.Input; /** * Zone where the farm will be defined (ie. `gra`, `bhs` also supports `all`) */ zone: pulumi.Input; }