import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * This resource represents load balancer frontend service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as upcloud from "@upcloud/pulumi-upcloud"; * * const config = new pulumi.Config(); * const lbZone = config.get("lbZone") || "fi-hel2"; * const lbNetwork = new upcloud.Network("lb_network", { * name: "lb-test-net", * zone: lbZone, * ipNetwork: { * address: "10.0.0.0/24", * dhcp: true, * family: "IPv4", * }, * }); * const lbFe1 = new upcloud.LoadbalancerFrontend("lb_fe_1", { * loadbalancer: upcloudLoadbalancer.lb.id, * name: "lb-fe-1-test", * mode: "http", * port: 8080, * defaultBackendName: upcloudLoadbalancerBackend.lbBe1.name, * networks: [{ * name: upcloudLoadbalancer.lb.networks[1].name, * }], * }); * const lb = new upcloud.Loadbalancer("lb", { * configuredStatus: "started", * name: "lb-test", * plan: "development", * zone: lbZone, * networks: [ * { * name: "Private-Net", * type: "private", * family: "IPv4", * network: upcloudNetwork.lbNetwork.id, * }, * { * name: "Public-Net", * type: "public", * family: "IPv4", * }, * ], * }); * const lbBe1 = new upcloud.LoadbalancerBackend("lb_be_1", { * loadbalancer: upcloudLoadbalancer.lb.id, * name: "lb-be-1-test", * }); * ``` */ export declare class LoadbalancerFrontend extends pulumi.CustomResource { /** * Get an existing LoadbalancerFrontend 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?: LoadbalancerFrontendState, opts?: pulumi.CustomResourceOptions): LoadbalancerFrontend; /** * Returns true if the given object is an instance of LoadbalancerFrontend. 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 LoadbalancerFrontend; /** * The name of the backend where traffic will be routed by default. The default backend can be overridden in frontend rules. * * Note that the frontend resource depends on the default backend resource. Use the `name` field of a backend resource as the value for this field (like in the example above) or the `dependsOn` meta argument to ensure the resources are created and destroyed in the correct order. */ readonly defaultBackendName: pulumi.Output; /** * UUID of the load balancer to which the frontend is connected. */ readonly loadbalancer: pulumi.Output; /** * When load balancer operating in `tcp` mode it acts as a layer 4 proxy. In `http` mode it acts as a layer 7 proxy. */ readonly mode: pulumi.Output; /** * The name of the frontend. Must be unique within the load balancer service. */ readonly name: pulumi.Output; /** * Networks that frontend will be listening. Networks are required if load balancer has `networks` defined. This field will be required when deprecated field `network` is removed from load balancer resource. */ readonly networks: pulumi.Output; /** * Port to listen for incoming requests. */ readonly port: pulumi.Output; readonly properties: pulumi.Output; /** * Set of frontend rule names. */ readonly rules: pulumi.Output; /** * Set of TLS config names. */ readonly tlsConfigs: pulumi.Output; /** * Create a LoadbalancerFrontend 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: LoadbalancerFrontendArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LoadbalancerFrontend resources. */ export interface LoadbalancerFrontendState { /** * The name of the backend where traffic will be routed by default. The default backend can be overridden in frontend rules. * * Note that the frontend resource depends on the default backend resource. Use the `name` field of a backend resource as the value for this field (like in the example above) or the `dependsOn` meta argument to ensure the resources are created and destroyed in the correct order. */ defaultBackendName?: pulumi.Input; /** * UUID of the load balancer to which the frontend is connected. */ loadbalancer?: pulumi.Input; /** * When load balancer operating in `tcp` mode it acts as a layer 4 proxy. In `http` mode it acts as a layer 7 proxy. */ mode?: pulumi.Input; /** * The name of the frontend. Must be unique within the load balancer service. */ name?: pulumi.Input; /** * Networks that frontend will be listening. Networks are required if load balancer has `networks` defined. This field will be required when deprecated field `network` is removed from load balancer resource. */ networks?: pulumi.Input[]>; /** * Port to listen for incoming requests. */ port?: pulumi.Input; properties?: pulumi.Input; /** * Set of frontend rule names. */ rules?: pulumi.Input[]>; /** * Set of TLS config names. */ tlsConfigs?: pulumi.Input[]>; } /** * The set of arguments for constructing a LoadbalancerFrontend resource. */ export interface LoadbalancerFrontendArgs { /** * The name of the backend where traffic will be routed by default. The default backend can be overridden in frontend rules. * * Note that the frontend resource depends on the default backend resource. Use the `name` field of a backend resource as the value for this field (like in the example above) or the `dependsOn` meta argument to ensure the resources are created and destroyed in the correct order. */ defaultBackendName: pulumi.Input; /** * UUID of the load balancer to which the frontend is connected. */ loadbalancer: pulumi.Input; /** * When load balancer operating in `tcp` mode it acts as a layer 4 proxy. In `http` mode it acts as a layer 7 proxy. */ mode: pulumi.Input; /** * The name of the frontend. Must be unique within the load balancer service. */ name?: pulumi.Input; /** * Networks that frontend will be listening. Networks are required if load balancer has `networks` defined. This field will be required when deprecated field `network` is removed from load balancer resource. */ networks?: pulumi.Input[]>; /** * Port to listen for incoming requests. */ port: pulumi.Input; properties?: pulumi.Input; }