UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

60 lines 2.08 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"); /** * Use this data source to get information on an existing IAM user based on its ID or email address. * For more information, * see [the documentation](https://developers.scaleway.com/en/products/iam/api/v1alpha1/#users-06bdcf). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const findById = scaleway.getIamUser({ * userId: "11111111-1111-1111-1111-111111111111", * }); * const findByEmail = scaleway.getIamUser({ * email: "foo@bar.com", * }); * ``` */ function getIamUser(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getIamUser:getIamUser", { "email": args.email, "organizationId": args.organizationId, "userId": args.userId, }, opts); } exports.getIamUser = getIamUser; /** * Use this data source to get information on an existing IAM user based on its ID or email address. * For more information, * see [the documentation](https://developers.scaleway.com/en/products/iam/api/v1alpha1/#users-06bdcf). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const findById = scaleway.getIamUser({ * userId: "11111111-1111-1111-1111-111111111111", * }); * const findByEmail = scaleway.getIamUser({ * email: "foo@bar.com", * }); * ``` */ function getIamUserOutput(args, opts) { return pulumi.output(args).apply((a) => getIamUser(a, opts)); } exports.getIamUserOutput = getIamUserOutput; //# sourceMappingURL=getIamUser.js.map