UNPKG

pulumi-fusionauth

Version:

A Pulumi package for managing FusionAuth instances.

64 lines 1.96 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.getUserOutput = exports.getUser = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## # User Data Source * * This data source can be used to fetch information about a specific user. * * [Users API](https://fusionauth.io/docs/v1/tech/apis/users) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fusionauth from "@pulumi/fusionauth"; * * const example = fusionauth.getUser({ * username: "foo@example.com", * }); * ``` */ function getUser(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("fusionauth:index/getUser:getUser", { "tenantId": args.tenantId, "userId": args.userId, "username": args.username, }, opts); } exports.getUser = getUser; /** * ## # User Data Source * * This data source can be used to fetch information about a specific user. * * [Users API](https://fusionauth.io/docs/v1/tech/apis/users) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fusionauth from "@pulumi/fusionauth"; * * const example = fusionauth.getUser({ * username: "foo@example.com", * }); * ``` */ function getUserOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fusionauth:index/getUser:getUser", { "tenantId": args.tenantId, "userId": args.userId, "username": args.username, }, opts); } exports.getUserOutput = getUserOutput; //# sourceMappingURL=getUser.js.map