UNPKG

@lbrlabs/pulumi-dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

49 lines 1.71 kB
"use strict"; // *** 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"); /** * 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; /** * 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) { return pulumi.output(args).apply((a) => getIamUser(a, opts)); } exports.getIamUserOutput = getIamUserOutput; //# sourceMappingURL=getIamUser.js.map