import * as pulumi from "@pulumi/pulumi"; /** * Creates a backend HTTP server group (frontend) 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 farm80 = new ovh.iploadbalancing.HttpFarm("farm80", { * serviceName: lb.then(lb => lb.serviceName), * displayName: "ingress-8080-gra", * zone: "all", * port: 80, * }); * const testFrontend = new ovh.iploadbalancing.HttpFrontend("test_frontend", { * serviceName: lb.then(lb => lb.serviceName), * displayName: "ingress-8080-gra", * zone: "all", * port: "80,443", * defaultFarmId: farm80.id, * }); * ``` * * ### With HTTP Header * * ```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 farm80 = new ovh.iploadbalancing.HttpFarm("farm80", { * serviceName: lb.then(lb => lb.serviceName), * displayName: "ingress-8080-gra", * zone: "all", * port: 80, * }); * const testFrontend = new ovh.iploadbalancing.HttpFrontend("test_frontend", { * serviceName: lb.then(lb => lb.serviceName), * displayName: "ingress-8080-gra", * zone: "all", * port: "80,443", * defaultFarmId: farm80.id, * httpHeaders: [ * "X-Ip-Header %%ci", * "X-Port-Header %%cp", * ], * }); * ``` * * ## Import * * HTTP frontend can be imported using the following format `service_name` and the `id` of the frontend separated by "/" e.g. * * bash * * ```sh * $ pulumi import ovh:IpLoadBalancing/httpFrontend:HttpFrontend testfrontend service_name/http_frontend_id * ``` */ export declare class HttpFrontend extends pulumi.CustomResource { /** * Get an existing HttpFrontend 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?: HttpFrontendState, opts?: pulumi.CustomResourceOptions): HttpFrontend; /** * Returns true if the given object is an instance of HttpFrontend. 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 HttpFrontend; /** * Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks. */ readonly allowedSources: pulumi.Output; /** * Only attach frontend on these ip. No restriction if null. List of Ip blocks. */ readonly dedicatedIpfos: pulumi.Output; /** * Default TCP Farm of your frontend */ readonly defaultFarmId: pulumi.Output; /** * Default ssl served to your customer */ readonly defaultSslId: pulumi.Output; /** * Disable your frontend. Default: 'false' */ readonly disabled: pulumi.Output; /** * Human readable name for your frontend, this field is for you */ readonly displayName: pulumi.Output; /** * HTTP Strict Transport Security. Default: 'false' */ readonly hsts: pulumi.Output; /** * HTTP headers to add to the frontend. List of string. */ readonly httpHeaders: pulumi.Output; /** * Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range */ readonly port: pulumi.Output; /** * Redirection HTTP' */ readonly redirectLocation: pulumi.Output; /** * The internal name of your IP load balancing */ readonly serviceName: pulumi.Output; /** * SSL deciphering. Default: 'false' */ readonly ssl: pulumi.Output; /** * Zone where the frontend will be defined (ie. `gra`, `bhs` also supports `all`) */ readonly zone: pulumi.Output; /** * Create a HttpFrontend 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: HttpFrontendArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HttpFrontend resources. */ export interface HttpFrontendState { /** * Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks. */ allowedSources?: pulumi.Input[]>; /** * Only attach frontend on these ip. No restriction if null. List of Ip blocks. */ dedicatedIpfos?: pulumi.Input[]>; /** * Default TCP Farm of your frontend */ defaultFarmId?: pulumi.Input; /** * Default ssl served to your customer */ defaultSslId?: pulumi.Input; /** * Disable your frontend. Default: 'false' */ disabled?: pulumi.Input; /** * Human readable name for your frontend, this field is for you */ displayName?: pulumi.Input; /** * HTTP Strict Transport Security. Default: 'false' */ hsts?: pulumi.Input; /** * HTTP headers to add to the frontend. List of string. */ httpHeaders?: pulumi.Input[]>; /** * Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range */ port?: pulumi.Input; /** * Redirection HTTP' */ redirectLocation?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName?: pulumi.Input; /** * SSL deciphering. Default: 'false' */ ssl?: pulumi.Input; /** * Zone where the frontend will be defined (ie. `gra`, `bhs` also supports `all`) */ zone?: pulumi.Input; } /** * The set of arguments for constructing a HttpFrontend resource. */ export interface HttpFrontendArgs { /** * Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks. */ allowedSources?: pulumi.Input[]>; /** * Only attach frontend on these ip. No restriction if null. List of Ip blocks. */ dedicatedIpfos?: pulumi.Input[]>; /** * Default TCP Farm of your frontend */ defaultFarmId?: pulumi.Input; /** * Default ssl served to your customer */ defaultSslId?: pulumi.Input; /** * Disable your frontend. Default: 'false' */ disabled?: pulumi.Input; /** * Human readable name for your frontend, this field is for you */ displayName?: pulumi.Input; /** * HTTP Strict Transport Security. Default: 'false' */ hsts?: pulumi.Input; /** * HTTP headers to add to the frontend. List of string. */ httpHeaders?: pulumi.Input[]>; /** * Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range */ port: pulumi.Input; /** * Redirection HTTP' */ redirectLocation?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName: pulumi.Input; /** * SSL deciphering. Default: 'false' */ ssl?: pulumi.Input; /** * Zone where the frontend will be defined (ie. `gra`, `bhs` also supports `all`) */ zone: pulumi.Input; }