@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
41 lines • 1.67 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAlbTargetGroupOutput = exports.getAlbTargetGroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* 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.
*/
function getAlbTargetGroup(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("yandex:index/getAlbTargetGroup:getAlbTargetGroup", {
"description": args.description,
"folderId": args.folderId,
"name": args.name,
"targetGroupId": args.targetGroupId,
}, opts);
}
exports.getAlbTargetGroup = getAlbTargetGroup;
function getAlbTargetGroupOutput(args, opts) {
return pulumi.output(args).apply(a => getAlbTargetGroup(a, opts));
}
exports.getAlbTargetGroupOutput = getAlbTargetGroupOutput;
//# sourceMappingURL=getAlbTargetGroup.js.map