@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
58 lines • 1.78 kB
JavaScript
;
// *** 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.getUserOutput = exports.getUser = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Data source for retrieving the user based on the API key.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getUser({
* orgId: "org_id",
* projectId: "project_id",
* email: "john.doe@harness.io",
* });
* ```
*/
function getUser(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("harness:platform/getUser:getUser", {
"email": args.email,
"orgId": args.orgId,
"projectId": args.projectId,
}, opts);
}
exports.getUser = getUser;
/**
* Data source for retrieving the user based on the API key.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getUser({
* orgId: "org_id",
* projectId: "project_id",
* email: "john.doe@harness.io",
* });
* ```
*/
function getUserOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("harness:platform/getUser:getUser", {
"email": args.email,
"orgId": args.orgId,
"projectId": args.projectId,
}, opts);
}
exports.getUserOutput = getUserOutput;
//# sourceMappingURL=getUser.js.map