import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * 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.TcpFarm("farm_name", { * serviceName: lb.then(lb => lb.serviceName), * displayName: "ingress-8080-gra", * zone: "GRA", * }); * ``` * * ## Import * * TCP 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/tcpFarm:TcpFarm farmname service_name/farm_id * ``` */ export declare class TcpFarm extends pulumi.CustomResource { /** * Get an existing TcpFarm 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?: TcpFarmState, opts?: pulumi.CustomResourceOptions): TcpFarm; /** * Returns true if the given object is an instance of TcpFarm. 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 TcpFarm; /** * Load balancing algorithm. `roundrobin` if null (`first`, `leastconn`, `roundrobin`, `source`) */ readonly balance: pulumi.Output; /** * Readable label for loadbalancer farm */ readonly displayName: pulumi.Output; /** * Port attached to your farm ([1..49151]). Inherited from frontend if null */ readonly port: pulumi.Output; /** * define a backend healthcheck probe */ readonly probe: pulumi.Output; /** * The internal name of your IP load balancing */ readonly serviceName: pulumi.Output; /** * Stickiness type. No stickiness if null (`sourceIp`) */ readonly stickiness: 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 TcpFarm 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: TcpFarmArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TcpFarm resources. */ export interface TcpFarmState { /** * Load balancing algorithm. `roundrobin` if null (`first`, `leastconn`, `roundrobin`, `source`) */ balance?: pulumi.Input; /** * Readable label for loadbalancer farm */ displayName?: pulumi.Input; /** * Port attached to your farm ([1..49151]). Inherited from frontend if null */ port?: pulumi.Input; /** * define a backend healthcheck probe */ probe?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName?: pulumi.Input; /** * Stickiness type. No stickiness if null (`sourceIp`) */ stickiness?: 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 TcpFarm resource. */ export interface TcpFarmArgs { /** * Load balancing algorithm. `roundrobin` if null (`first`, `leastconn`, `roundrobin`, `source`) */ balance?: pulumi.Input; /** * Readable label for loadbalancer farm */ displayName?: pulumi.Input; /** * Port attached to your farm ([1..49151]). Inherited from frontend if null */ port?: pulumi.Input; /** * define a backend healthcheck probe */ probe?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName: pulumi.Input; /** * Stickiness type. No stickiness if null (`sourceIp`) */ stickiness?: 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; }