<reponame>SimCubeLtd/pulumi-nexus// *** 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! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Nexus
{
    public static class GetNexusUser
    {
        public static Task<GetNexusUserResult> InvokeAsync(GetNexusUserArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetNexusUserResult>("nexus:index/getNexusUser:GetNexusUser", args ?? new GetNexusUserArgs(), options.WithDefaults());

        public static Output<GetNexusUserResult> Invoke(GetNexusUserInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetNexusUserResult>("nexus:index/getNexusUser:GetNexusUser", args ?? new GetNexusUserInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetNexusUserArgs : Pulumi.InvokeArgs
    {
        [Input("userid", required: true)]
        public string Userid { get; set; } = null!;

        public GetNexusUserArgs()
        {
        }
    }

    public sealed class GetNexusUserInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("userid", required: true)]
        public Input<string> Userid { get; set; } = null!;

        public GetNexusUserInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetNexusUserResult
    {
        public readonly string Email;
        public readonly string Firstname;
        public readonly string Id;
        public readonly string Lastname;
        public readonly ImmutableArray<string> Roles;
        public readonly string Status;
        public readonly string Userid;

        [OutputConstructor]
        private GetNexusUserResult(
            string email,

            string firstname,

            string id,

            string lastname,

            ImmutableArray<string> roles,

            string status,

            string userid)
        {
            Email = email;
            Firstname = firstname;
            Id = id;
            Lastname = lastname;
            Roles = roles;
            Status = status;
            Userid = userid;
        }
    }
}
