UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

74 lines 2.35 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getUsergroupOutput = exports.getUsergroup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Data source for retrieving a Harness User Group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const exampleById = harness.platform.getUsergroup({ * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * const exampleByName = harness.platform.getUsergroup({ * name: "name", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ function getUsergroup(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("harness:platform/getUsergroup:getUsergroup", { "identifier": args.identifier, "name": args.name, "notificationConfigs": args.notificationConfigs, "orgId": args.orgId, "projectId": args.projectId, }, opts); } exports.getUsergroup = getUsergroup; /** * Data source for retrieving a Harness User Group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const exampleById = harness.platform.getUsergroup({ * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * const exampleByName = harness.platform.getUsergroup({ * name: "name", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ function getUsergroupOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("harness:platform/getUsergroup:getUsergroup", { "identifier": args.identifier, "name": args.name, "notificationConfigs": args.notificationConfigs, "orgId": args.orgId, "projectId": args.projectId, }, opts); } exports.getUsergroupOutput = getUsergroupOutput; //# sourceMappingURL=getUsergroup.js.map