@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
60 lines • 2.45 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.getIamUserOutput = exports.getIamUser = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* > **Dynatrace SaaS only**
*
* > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permission: **Allow read access for identity resources (users and groups)** (`account-idm-read`).
*
* This data source allows you to specify the email address of the user and produces an ordered list of group IDs this user is a member of
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const userA = dynatrace.getIamUser({
* email: "me@home.com",
* });
* export const groups = userA.then(userA => userA.groups);
* ```
*/
function getIamUser(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("dynatrace:index/getIamUser:getIamUser", {
"email": args.email,
}, opts);
}
exports.getIamUser = getIamUser;
/**
* > **Dynatrace SaaS only**
*
* > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permission: **Allow read access for identity resources (users and groups)** (`account-idm-read`).
*
* This data source allows you to specify the email address of the user and produces an ordered list of group IDs this user is a member of
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const userA = dynatrace.getIamUser({
* email: "me@home.com",
* });
* export const groups = userA.then(userA => userA.groups);
* ```
*/
function getIamUserOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("dynatrace:index/getIamUser:getIamUser", {
"email": args.email,
}, opts);
}
exports.getIamUserOutput = getIamUserOutput;
//# sourceMappingURL=getIamUser.js.map