// *** 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 PiersKarsenbarg.Sdm
{
    /// <summary>
    /// ## Import
    /// 
    /// RemoteIdentity can be imported using the id, e.g.,
    /// 
    /// ```sh
    ///  $ pulumi import sdm:index/remoteIdentity:RemoteIdentity example i-12345678
    /// ```
    /// </summary>
    [SdmResourceType("sdm:index/remoteIdentity:RemoteIdentity")]
    public partial class RemoteIdentity : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The account for this remote identity.
        /// </summary>
        [Output("accountId")]
        public Output<string> AccountId { get; private set; } = null!;

        /// <summary>
        /// The remote identity group.
        /// </summary>
        [Output("remoteIdentityGroupId")]
        public Output<string> RemoteIdentityGroupId { get; private set; } = null!;

        /// <summary>
        /// The username to be used as the remote identity for this account.
        /// </summary>
        [Output("username")]
        public Output<string> Username { get; private set; } = null!;


        /// <summary>
        /// Create a RemoteIdentity resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public RemoteIdentity(string name, RemoteIdentityArgs args, CustomResourceOptions? options = null)
            : base("sdm:index/remoteIdentity:RemoteIdentity", name, args ?? new RemoteIdentityArgs(), MakeResourceOptions(options, ""))
        {
        }

        private RemoteIdentity(string name, Input<string> id, RemoteIdentityState? state = null, CustomResourceOptions? options = null)
            : base("sdm:index/remoteIdentity:RemoteIdentity", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/pierskarsenbarg/pulumi-sdm",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing RemoteIdentity resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static RemoteIdentity Get(string name, Input<string> id, RemoteIdentityState? state = null, CustomResourceOptions? options = null)
        {
            return new RemoteIdentity(name, id, state, options);
        }
    }

    public sealed class RemoteIdentityArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The account for this remote identity.
        /// </summary>
        [Input("accountId", required: true)]
        public Input<string> AccountId { get; set; } = null!;

        /// <summary>
        /// The remote identity group.
        /// </summary>
        [Input("remoteIdentityGroupId", required: true)]
        public Input<string> RemoteIdentityGroupId { get; set; } = null!;

        /// <summary>
        /// The username to be used as the remote identity for this account.
        /// </summary>
        [Input("username", required: true)]
        public Input<string> Username { get; set; } = null!;

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

    public sealed class RemoteIdentityState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The account for this remote identity.
        /// </summary>
        [Input("accountId")]
        public Input<string>? AccountId { get; set; }

        /// <summary>
        /// The remote identity group.
        /// </summary>
        [Input("remoteIdentityGroupId")]
        public Input<string>? RemoteIdentityGroupId { get; set; }

        /// <summary>
        /// The username to be used as the remote identity for this account.
        /// </summary>
        [Input("username")]
        public Input<string>? Username { get; set; }

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