UNPKG

@pulumi/sumologic

Version:

A Pulumi package for creating and managing sumologic cloud resources.

98 lines 3.16 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"); /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sumologic from "@pulumi/sumologic"; * * const _this = sumologic.getUser({ * id: "1234567890", * }); * ``` * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sumologic from "@pulumi/sumologic"; * * const that = sumologic.getUser({ * email: "user@example.com", * }); * ``` * * A user can be looked up by either `id` or `email`. One of those attributes needs to be specified. * * If both `id` and `email` have been specified, `id` takes precedence. * * ## Attributes reference * * The following attributes are exported: * * - `id` - The internal ID of the user. * - `email` - (Required) Email of the user. * - `firstName` - (Required) First name of the user. * - `lastName` - (Required) Last name of the user. * - `isActive` - (Required) This has the value true if the user is active and false if they have been deactivated. * - `roleIds` - (Required) List of roleIds associated with the user. */ function getUser(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("sumologic:index/getUser:getUser", { "email": args.email, "id": args.id, }, opts); } exports.getUser = getUser; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sumologic from "@pulumi/sumologic"; * * const _this = sumologic.getUser({ * id: "1234567890", * }); * ``` * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sumologic from "@pulumi/sumologic"; * * const that = sumologic.getUser({ * email: "user@example.com", * }); * ``` * * A user can be looked up by either `id` or `email`. One of those attributes needs to be specified. * * If both `id` and `email` have been specified, `id` takes precedence. * * ## Attributes reference * * The following attributes are exported: * * - `id` - The internal ID of the user. * - `email` - (Required) Email of the user. * - `firstName` - (Required) First name of the user. * - `lastName` - (Required) Last name of the user. * - `isActive` - (Required) This has the value true if the user is active and false if they have been deactivated. * - `roleIds` - (Required) List of roleIds associated with the user. */ function getUserOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("sumologic:index/getUser:getUser", { "email": args.email, "id": args.id, }, opts); } exports.getUserOutput = getUserOutput; //# sourceMappingURL=getUser.js.map