import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates and manages Scaleway Load Balancers. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/network/load-balancer/concepts/#load-balancers) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-load-balancer-list-load-balancers). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const main = new scaleway.LbIp("main", {zone: "fr-par-1"}); * const base = new scaleway.Lb("base", { * ipIds: [main.id], * zone: main.zone, * type: "LB-S", * }); * ``` * * ### Private LB * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const base = new scaleway.Lb("base", { * assignFlexibleIp: false, * type: "LB-S", * }); * ``` * * ### With IPv6 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const v4 = new scaleway.LbIp("v4", {}); * const v6 = new scaleway.LbIp("v6", {isIpv6: true}); * const main = new scaleway.Lb("main", { * ipIds: [ * v4.id, * v6.id, * ], * type: "LB-S", * }); * ``` * * ## Import * * Load Balancers can be imported using `{zone}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/lb:Lb main fr-par-1/11111111-1111-1111-1111-111111111111 * ``` * * Be aware that you will also need to import the `scaleway_lb_ip` resource. */ export declare class Lb extends pulumi.CustomResource { /** * Get an existing Lb 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?: LbState, opts?: pulumi.CustomResourceOptions): Lb; /** * Returns true if the given object is an instance of Lb. 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 Lb; /** * Defines whether to automatically assign a flexible public IPv4 to the Load Balancer. */ readonly assignFlexibleIp: pulumi.Output; /** * Defines whether to automatically assign a flexible public IPv6 to the Load Balancer. */ readonly assignFlexibleIpv6: pulumi.Output; /** * The description of the Load Balancer. */ readonly description: pulumi.Output; /** * The Load Balancer public IPv4 address. */ readonly ipAddress: pulumi.Output; /** * Please use `ipIds`. The ID of the associated Load Balancer IP. See below. * * > **Important:** Updates to `ipId` will recreate the Load Balancer. * * @deprecated Please use ip_ids */ readonly ipId: pulumi.Output; /** * The List of IP IDs to attach to the Load Balancer. * * > **Important:** Make sure to use a `scaleway.LbIp` resource to create the IPs. */ readonly ipIds: pulumi.Output; /** * The Load Balancer public IPv6 address. */ readonly ipv6Address: pulumi.Output; /** * The name of the Load Balancer. */ readonly name: pulumi.Output; /** * The ID of the Organization ID the Load Balancer is associated with. */ readonly organizationId: pulumi.Output; /** * List of private network to connect with your load balancer. */ readonly privateNetworks: pulumi.Output; /** * `projectId`) The ID of the Project the Load Balancer is associated with. */ readonly projectId: pulumi.Output; /** * The region of the resource */ readonly region: pulumi.Output; /** * The `releaseIp` allow the release of the IP address associated with the Load Balancer. * * @deprecated The resource ip will be destroyed by it's own resource. Please set this to `false` */ readonly releaseIp: pulumi.Output; /** * Enforces minimal SSL version (in SSL/TLS offloading context). Please check [possible values](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-load-balancer-create-a-load-balancer). */ readonly sslCompatibilityLevel: pulumi.Output; /** * The tags associated with the Load Balancer. */ readonly tags: pulumi.Output; /** * The type of the Load Balancer. Please check the migration section to upgrade the type. */ readonly type: pulumi.Output; /** * `zone`) The zone of the Load Balancer. */ readonly zone: pulumi.Output; /** * Create a Lb 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: LbArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Lb resources. */ export interface LbState { /** * Defines whether to automatically assign a flexible public IPv4 to the Load Balancer. */ assignFlexibleIp?: pulumi.Input; /** * Defines whether to automatically assign a flexible public IPv6 to the Load Balancer. */ assignFlexibleIpv6?: pulumi.Input; /** * The description of the Load Balancer. */ description?: pulumi.Input; /** * The Load Balancer public IPv4 address. */ ipAddress?: pulumi.Input; /** * Please use `ipIds`. The ID of the associated Load Balancer IP. See below. * * > **Important:** Updates to `ipId` will recreate the Load Balancer. * * @deprecated Please use ip_ids */ ipId?: pulumi.Input; /** * The List of IP IDs to attach to the Load Balancer. * * > **Important:** Make sure to use a `scaleway.LbIp` resource to create the IPs. */ ipIds?: pulumi.Input[]>; /** * The Load Balancer public IPv6 address. */ ipv6Address?: pulumi.Input; /** * The name of the Load Balancer. */ name?: pulumi.Input; /** * The ID of the Organization ID the Load Balancer is associated with. */ organizationId?: pulumi.Input; /** * List of private network to connect with your load balancer. */ privateNetworks?: pulumi.Input[]>; /** * `projectId`) The ID of the Project the Load Balancer is associated with. */ projectId?: pulumi.Input; /** * The region of the resource */ region?: pulumi.Input; /** * The `releaseIp` allow the release of the IP address associated with the Load Balancer. * * @deprecated The resource ip will be destroyed by it's own resource. Please set this to `false` */ releaseIp?: pulumi.Input; /** * Enforces minimal SSL version (in SSL/TLS offloading context). Please check [possible values](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-load-balancer-create-a-load-balancer). */ sslCompatibilityLevel?: pulumi.Input; /** * The tags associated with the Load Balancer. */ tags?: pulumi.Input[]>; /** * The type of the Load Balancer. Please check the migration section to upgrade the type. */ type?: pulumi.Input; /** * `zone`) The zone of the Load Balancer. */ zone?: pulumi.Input; } /** * The set of arguments for constructing a Lb resource. */ export interface LbArgs { /** * Defines whether to automatically assign a flexible public IPv4 to the Load Balancer. */ assignFlexibleIp?: pulumi.Input; /** * Defines whether to automatically assign a flexible public IPv6 to the Load Balancer. */ assignFlexibleIpv6?: pulumi.Input; /** * The description of the Load Balancer. */ description?: pulumi.Input; /** * Please use `ipIds`. The ID of the associated Load Balancer IP. See below. * * > **Important:** Updates to `ipId` will recreate the Load Balancer. * * @deprecated Please use ip_ids */ ipId?: pulumi.Input; /** * The List of IP IDs to attach to the Load Balancer. * * > **Important:** Make sure to use a `scaleway.LbIp` resource to create the IPs. */ ipIds?: pulumi.Input[]>; /** * The name of the Load Balancer. */ name?: pulumi.Input; /** * List of private network to connect with your load balancer. */ privateNetworks?: pulumi.Input[]>; /** * `projectId`) The ID of the Project the Load Balancer is associated with. */ projectId?: pulumi.Input; /** * The `releaseIp` allow the release of the IP address associated with the Load Balancer. * * @deprecated The resource ip will be destroyed by it's own resource. Please set this to `false` */ releaseIp?: pulumi.Input; /** * Enforces minimal SSL version (in SSL/TLS offloading context). Please check [possible values](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-load-balancer-create-a-load-balancer). */ sslCompatibilityLevel?: pulumi.Input; /** * The tags associated with the Load Balancer. */ tags?: pulumi.Input[]>; /** * The type of the Load Balancer. Please check the migration section to upgrade the type. */ type: pulumi.Input; /** * `zone`) The zone of the Load Balancer. */ zone?: pulumi.Input; }