import * as pulumi from "@pulumi/pulumi"; /** * Creates a backend 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.TcpFarm("farm80", { * serviceName: lb.then(lb => lb.serviceName), * displayName: "ingress-8080-gra", * zone: "all", * port: 80, * }); * const testFrontend = new ovh.iploadbalancing.TcpFrontend("test_frontend", { * serviceName: lb.then(lb => lb.serviceName), * displayName: "ingress-8080-gra", * zone: "all", * port: "80,443", * defaultFarmId: farm80.id, * }); * ``` * * ## Import * * TCP 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/tcpFrontend:TcpFrontend testfrontend service_name/tcp_frontend_id * ``` */ export declare class TcpFrontend extends pulumi.CustomResource { /** * Get an existing TcpFrontend 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?: TcpFrontendState, opts?: pulumi.CustomResourceOptions): TcpFrontend; /** * Returns true if the given object is an instance of TcpFrontend. 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 TcpFrontend; /** * 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; /** * Deny IP Load Balancing access to these ip block. No restriction if null. You cannot specify both `allowedSource` and `deniedSource` at the same time. List of IP blocks. */ readonly deniedSources: 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; /** * 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; /** * 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 TcpFrontend 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: TcpFrontendArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TcpFrontend resources. */ export interface TcpFrontendState { /** * 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; /** * Deny IP Load Balancing access to these ip block. No restriction if null. You cannot specify both `allowedSource` and `deniedSource` at the same time. List of IP blocks. */ deniedSources?: pulumi.Input[]>; /** * Disable your frontend. Default: 'false' */ disabled?: pulumi.Input; /** * Human readable name for your frontend, this field is for you */ displayName?: 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; /** * 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 TcpFrontend resource. */ export interface TcpFrontendArgs { /** * 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; /** * Deny IP Load Balancing access to these ip block. No restriction if null. You cannot specify both `allowedSource` and `deniedSource` at the same time. List of IP blocks. */ deniedSources?: pulumi.Input[]>; /** * Disable your frontend. Default: 'false' */ disabled?: pulumi.Input; /** * Human readable name for your frontend, this field is for you */ displayName?: 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; /** * 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; }