import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "./types"; /** * Creates a target group in the specified folder and adds the specified targets to it. * For more information, see [the official documentation](https://cloud.yandex.com/en/docs/application-load-balancer/concepts/target-group). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const foo = new yandex.AlbTargetGroup("foo", { * targets: [ * { * ipAddress: yandex_compute_instance_my_instance_1.networkInterface.0.ipAddress, * subnetId: yandex_vpc_subnet_my_subnet.id, * }, * { * ipAddress: yandex_compute_instance_my_instance_2.networkInterface.0.ipAddress, * subnetId: yandex_vpc_subnet_my_subnet.id, * }, * ], * }); * ``` * * ## Import * * A target group can be imported using the `id` of the resource, e.g. * * ```sh * $ pulumi import yandex:index/albTargetGroup:AlbTargetGroup default target_group_id * ``` */ export declare class AlbTargetGroup extends pulumi.CustomResource { /** * Get an existing AlbTargetGroup 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?: AlbTargetGroupState, opts?: pulumi.CustomResourceOptions): AlbTargetGroup; /** * Returns true if the given object is an instance of AlbTargetGroup. 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 AlbTargetGroup; /** * The target group creation timestamp. */ readonly createdAt: pulumi.Output; /** * An optional description of the target group. Provide this property when * you create the resource. */ 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 target group. A list of key/value pairs. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Name of the target group. Provided by the client when the target group is created. */ readonly name: pulumi.Output; /** * A Target resource. The structure is documented below. */ readonly targets: pulumi.Output; /** * Create a AlbTargetGroup 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?: AlbTargetGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AlbTargetGroup resources. */ export interface AlbTargetGroupState { /** * The target group creation timestamp. */ createdAt?: pulumi.Input; /** * An optional description of the target group. Provide this property when * you create the resource. */ 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 target group. A list of key/value pairs. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Name of the target group. Provided by the client when the target group is created. */ name?: pulumi.Input; /** * A Target resource. The structure is documented below. */ targets?: pulumi.Input[]>; } /** * The set of arguments for constructing a AlbTargetGroup resource. */ export interface AlbTargetGroupArgs { /** * An optional description of the target group. Provide this property when * you create the resource. */ 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 target group. A list of key/value pairs. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Name of the target group. Provided by the client when the target group is created. */ name?: pulumi.Input; /** * A Target resource. The structure is documented below. */ targets?: pulumi.Input[]>; }