@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
91 lines (90 loc) • 2.77 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "./types";
/**
* Get information about a Yandex Application Load Balancer target group. For more information, see
* [Yandex.Cloud Application Load Balancer](https://cloud.yandex.com/en/docs/application-load-balancer/quickstart).
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const foo = pulumi.output(yandex.getAlbTargetGroup({
* targetGroupId: "my-target-group-id",
* }));
* ```
*
* This data source is used to define [Application Load Balancer Target Groups] that can be used by other resources.
*/
export declare function getAlbTargetGroup(args?: GetAlbTargetGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetAlbTargetGroupResult>;
/**
* A collection of arguments for invoking getAlbTargetGroup.
*/
export interface GetAlbTargetGroupArgs {
/**
* Description of the target group.
*/
description?: string;
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
folderId?: string;
/**
* - Name of the Target Group.
*/
name?: string;
/**
* Target Group ID.
*/
targetGroupId?: string;
}
/**
* A collection of values returned by getAlbTargetGroup.
*/
export interface GetAlbTargetGroupResult {
/**
* Creation timestamp of this target group.
*/
readonly createdAt: string;
/**
* Description of the target group.
*/
readonly description: string;
readonly folderId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Labels to assign to this target group.
* * `target.0.ip_address` - IP address of the target.
* * `target.0.subnet_id` - ID of the subnet that targets are connected to.
*/
readonly labels: {
[key: string]: string;
};
readonly name: string;
readonly targetGroupId: string;
readonly targets: outputs.GetAlbTargetGroupTarget[];
}
export declare function getAlbTargetGroupOutput(args?: GetAlbTargetGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAlbTargetGroupResult>;
/**
* A collection of arguments for invoking getAlbTargetGroup.
*/
export interface GetAlbTargetGroupOutputArgs {
/**
* Description of the target group.
*/
description?: pulumi.Input<string>;
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
folderId?: pulumi.Input<string>;
/**
* - Name of the Target Group.
*/
name?: pulumi.Input<string>;
/**
* Target Group ID.
*/
targetGroupId?: pulumi.Input<string>;
}