UNPKG

@pulumi/yandex

Version:

A Pulumi package for creating and managing yandex cloud resources.

39 lines 1.42 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"); /** * Get information about a Yandex IAM user account. For more information about accounts, see * [Yandex.Cloud IAM accounts](https://cloud.yandex.com/docs/iam/concepts/#accounts). * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const admin = pulumi.output(yandex.getIamUser({ * login: "my-yandex-login", * })); * ``` * * This data source is used to define [IAM User] that can be used by other resources. */ function getIamUser(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("yandex:index/getIamUser:getIamUser", { "login": args.login, "userId": args.userId, }, opts); } exports.getIamUser = getIamUser; function getIamUserOutput(args, opts) { return pulumi.output(args).apply(a => getIamUser(a, opts)); } exports.getIamUserOutput = getIamUserOutput; //# sourceMappingURL=getIamUser.js.map