UNPKG

@osmit-gmbh/pulumi-authentik

Version:

A Pulumi package for creating and managing authentik cloud resources.

56 lines 1.66 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"); /** * Get users by pk or username * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as authentik from "@pulumi/authentik"; * * // To get the name of a user by username * const akadmin = authentik.getUser({ * username: "akadmin", * }); * ``` */ function getUser(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("authentik:index/getUser:getUser", { "pk": args.pk, "username": args.username, }, opts); } exports.getUser = getUser; /** * Get users by pk or username * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as authentik from "@pulumi/authentik"; * * // To get the name of a user by username * const akadmin = authentik.getUser({ * username: "akadmin", * }); * ``` */ function getUserOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("authentik:index/getUser:getUser", { "pk": args.pk, "username": args.username, }, opts); } exports.getUserOutput = getUserOutput; //# sourceMappingURL=getUser.js.map