import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "./types"; /** * Creates an Application Load Balancer in the specified folder. For more information, see * [the official documentation](https://cloud.yandex.com/en/docs/application-load-balancer/concepts/application-load-balancer) * . * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const test_balancer = new yandex.AlbLoadBalancer("test-balancer", { * networkId: yandex_vpc_network["test-network"].id, * allocationPolicy: { * locations: [{ * zoneId: "ru-central1-a", * subnetId: yandex_vpc_subnet["test-subnet"].id, * }], * }, * listeners: [{ * name: "my-listener", * endpoints: [{ * addresses: [{ * externalIpv4Address: {}, * }], * ports: [8080], * }], * http: { * handler: { * httpRouterId: yandex_alb_http_router["test-router"].id, * }, * }, * }], * }); * ``` * * ## Import * * An Application Load Balancer can be imported using the `id` of the resource, e.g. * * ```sh * $ pulumi import yandex:index/albLoadBalancer:AlbLoadBalancer default load_balancer_id * ``` */ export declare class AlbLoadBalancer extends pulumi.CustomResource { /** * Get an existing AlbLoadBalancer 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?: AlbLoadBalancerState, opts?: pulumi.CustomResourceOptions): AlbLoadBalancer; /** * Returns true if the given object is an instance of AlbLoadBalancer. 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 AlbLoadBalancer; /** * Allocation zones for the Load Balancer instance. The structure is documented below. */ readonly allocationPolicy: pulumi.Output; /** * The Load Balancer creation timestamp. */ readonly createdAt: pulumi.Output; /** * An optional description of the Load Balancer. */ readonly description: pulumi.Output; /** * The ID of the folder to which the resource belongs. If omitted, the provider folder is used. */ readonly folderId: pulumi.Output; /** * Labels to assign to this Load Balancer. A list of key/value pairs. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * List of listeners for the Load Balancer. The structure is documented below. */ readonly listeners: pulumi.Output; /** * Cloud log group used by the Load Balancer to store access logs. */ readonly logGroupId: pulumi.Output; /** * name of SNI match. */ readonly name: pulumi.Output; /** * ID of the network that the Load Balancer is located at. */ readonly networkId: pulumi.Output; /** * ID of the region that the Load Balancer is located at. */ readonly regionId: pulumi.Output; /** * A list of ID's of security groups attached to the Load Balancer. */ readonly securityGroupIds: pulumi.Output; /** * Status of the Load Balancer. */ readonly status: pulumi.Output; /** * Create a AlbLoadBalancer 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: AlbLoadBalancerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AlbLoadBalancer resources. */ export interface AlbLoadBalancerState { /** * Allocation zones for the Load Balancer instance. The structure is documented below. */ allocationPolicy?: pulumi.Input; /** * The Load Balancer creation timestamp. */ createdAt?: pulumi.Input; /** * An optional description of the Load Balancer. */ description?: pulumi.Input; /** * The ID of the folder to which the resource belongs. If omitted, the provider folder is used. */ folderId?: pulumi.Input; /** * Labels to assign to this Load Balancer. A list of key/value pairs. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * List of listeners for the Load Balancer. The structure is documented below. */ listeners?: pulumi.Input[]>; /** * Cloud log group used by the Load Balancer to store access logs. */ logGroupId?: pulumi.Input; /** * name of SNI match. */ name?: pulumi.Input; /** * ID of the network that the Load Balancer is located at. */ networkId?: pulumi.Input; /** * ID of the region that the Load Balancer is located at. */ regionId?: pulumi.Input; /** * A list of ID's of security groups attached to the Load Balancer. */ securityGroupIds?: pulumi.Input[]>; /** * Status of the Load Balancer. */ status?: pulumi.Input; } /** * The set of arguments for constructing a AlbLoadBalancer resource. */ export interface AlbLoadBalancerArgs { /** * Allocation zones for the Load Balancer instance. The structure is documented below. */ allocationPolicy: pulumi.Input; /** * An optional description of the Load Balancer. */ description?: pulumi.Input; /** * The ID of the folder to which the resource belongs. If omitted, the provider folder is used. */ folderId?: pulumi.Input; /** * Labels to assign to this Load Balancer. A list of key/value pairs. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * List of listeners for the Load Balancer. The structure is documented below. */ listeners?: pulumi.Input[]>; /** * name of SNI match. */ name?: pulumi.Input; /** * ID of the network that the Load Balancer is located at. */ networkId: pulumi.Input; /** * ID of the region that the Load Balancer is located at. */ regionId?: pulumi.Input; /** * A list of ID's of security groups attached to the Load Balancer. */ securityGroupIds?: pulumi.Input[]>; }