@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
41 lines • 1.34 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.getGroupOutput = exports.getGroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get details of the specified IAM user group.
*
* > **NOTE:** You *must* have IAM read privileges to use this data source.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const group = pulumi.output(huaweicloud.Iam.getGroup({
* name: "my_group",
* }));
* ```
*/
function getGroup(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("huaweicloud:Iam/getGroup:getGroup", {
"description": args.description,
"id": args.id,
"name": args.name,
}, opts);
}
exports.getGroup = getGroup;
function getGroupOutput(args, opts) {
return pulumi.output(args).apply(a => getGroup(a, opts));
}
exports.getGroupOutput = getGroupOutput;
//# sourceMappingURL=getGroup.js.map