UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

56 lines 1.85 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** 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"); /** * This data source can be used to fetch information about a specific * IAM user. By using this data source, you can reference IAM user * properties without having to hard code ARNs or unique IDs as input. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.iam.getUser({ * userName: "an_example_user_name", * }); * ``` */ function getUser(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:iam/getUser:getUser", { "tags": args.tags, "userName": args.userName, }, opts); } exports.getUser = getUser; /** * This data source can be used to fetch information about a specific * IAM user. By using this data source, you can reference IAM user * properties without having to hard code ARNs or unique IDs as input. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.iam.getUser({ * userName: "an_example_user_name", * }); * ``` */ function getUserOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:iam/getUser:getUser", { "tags": args.tags, "userName": args.userName, }, opts); } exports.getUserOutput = getUserOutput; //# sourceMappingURL=getUser.js.map