<reponame>lbrlabs/pulumi-ovh// *** 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;
using Pulumi;

namespace Lbrlabs.PulumiPackage.Ovh.Me
{
    public static class GetIdentityUser
    {
        /// <summary>
        /// Use this data source to retrieve information about an identity user.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using System.Linq;
        /// using Pulumi;
        /// using Ovh = Pulumi.Ovh;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var myUser = Ovh.Me.GetIdentityUser.Invoke(new()
        ///     {
        ///         User = "my_user_login",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetIdentityUserResult> InvokeAsync(GetIdentityUserArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetIdentityUserResult>("ovh:Me/getIdentityUser:getIdentityUser", args ?? new GetIdentityUserArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to retrieve information about an identity user.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using System.Linq;
        /// using Pulumi;
        /// using Ovh = Pulumi.Ovh;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var myUser = Ovh.Me.GetIdentityUser.Invoke(new()
        ///     {
        ///         User = "my_user_login",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetIdentityUserResult> Invoke(GetIdentityUserInvokeArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetIdentityUserResult>("ovh:Me/getIdentityUser:getIdentityUser", args ?? new GetIdentityUserInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetIdentityUserArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// User's login.
        /// </summary>
        [Input("user", required: true)]
        public string User { get; set; } = null!;

        public GetIdentityUserArgs()
        {
        }
        public static new GetIdentityUserArgs Empty => new GetIdentityUserArgs();
    }

    public sealed class GetIdentityUserInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// User's login.
        /// </summary>
        [Input("user", required: true)]
        public Input<string> User { get; set; } = null!;

        public GetIdentityUserInvokeArgs()
        {
        }
        public static new GetIdentityUserInvokeArgs Empty => new GetIdentityUserInvokeArgs();
    }


    [OutputType]
    public sealed class GetIdentityUserResult
    {
        /// <summary>
        /// Creation date of this user.
        /// </summary>
        public readonly string Creation;
        /// <summary>
        /// User description.
        /// </summary>
        public readonly string Description;
        /// <summary>
        /// User's email.
        /// </summary>
        public readonly string Email;
        /// <summary>
        /// User's group.
        /// </summary>
        public readonly string Group;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// Last update of this user.
        /// </summary>
        public readonly string LastUpdate;
        /// <summary>
        /// User's login suffix.
        /// </summary>
        public readonly string Login;
        /// <summary>
        /// When the user changed his password for the last time.
        /// </summary>
        public readonly string PasswordLastUpdate;
        /// <summary>
        /// Current user's status.
        /// </summary>
        public readonly string Status;
        public readonly string User;

        [OutputConstructor]
        private GetIdentityUserResult(
            string creation,

            string description,

            string email,

            string group,

            string id,

            string lastUpdate,

            string login,

            string passwordLastUpdate,

            string status,

            string user)
        {
            Creation = creation;
            Description = description;
            Email = email;
            Group = group;
            Id = id;
            LastUpdate = lastUpdate;
            Login = login;
            PasswordLastUpdate = passwordLastUpdate;
            Status = status;
            User = user;
        }
    }
}
