@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
45 lines • 1.78 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.getComputeDiskPlacementGroupOutput = exports.getComputeDiskPlacementGroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information about a Yandex Compute Disk Placement group. For more information, see
* [the official documentation](https://cloud.yandex.com/docs/compute/concepts/disk#nr-disks).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const myGroup = pulumi.output(yandex.getComputeDiskPlacementGroup({
* groupId: "some_group_id",
* }));
*
* export const placementGroupName = myGroup.name!;
* ```
*/
function getComputeDiskPlacementGroup(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("yandex:index/getComputeDiskPlacementGroup:getComputeDiskPlacementGroup", {
"description": args.description,
"folderId": args.folderId,
"groupId": args.groupId,
"labels": args.labels,
"name": args.name,
"zone": args.zone,
}, opts);
}
exports.getComputeDiskPlacementGroup = getComputeDiskPlacementGroup;
function getComputeDiskPlacementGroupOutput(args, opts) {
return pulumi.output(args).apply(a => getComputeDiskPlacementGroup(a, opts));
}
exports.getComputeDiskPlacementGroupOutput = getComputeDiskPlacementGroupOutput;
//# sourceMappingURL=getComputeDiskPlacementGroup.js.map