// *** 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.Nutanix
{
    public static class GetKarbonClusterSsh
    {
        /// <summary>
        /// Describes the SSH config from a Karbon Cluster
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Nutanix = Pulumi.Nutanix;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var sshbyid = Output.Create(Nutanix.GetKarbonClusterSsh.InvokeAsync(new Nutanix.GetKarbonClusterSshArgs
        ///         {
        ///             KarbonClusterId = "&lt;YOUR-CLUSTER-ID&gt;",
        ///         }));
        ///         var sshbyname = Output.Create(Nutanix.GetKarbonClusterSsh.InvokeAsync(new Nutanix.GetKarbonClusterSshArgs
        ///         {
        ///             KarbonClusterName = "&lt;YOUR-CLUSTER-NAME&gt;",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetKarbonClusterSshResult> InvokeAsync(GetKarbonClusterSshArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetKarbonClusterSshResult>("nutanix:index/getKarbonClusterSsh:getKarbonClusterSsh", args ?? new GetKarbonClusterSshArgs(), options.WithDefaults());

        /// <summary>
        /// Describes the SSH config from a Karbon Cluster
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Nutanix = Pulumi.Nutanix;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var sshbyid = Output.Create(Nutanix.GetKarbonClusterSsh.InvokeAsync(new Nutanix.GetKarbonClusterSshArgs
        ///         {
        ///             KarbonClusterId = "&lt;YOUR-CLUSTER-ID&gt;",
        ///         }));
        ///         var sshbyname = Output.Create(Nutanix.GetKarbonClusterSsh.InvokeAsync(new Nutanix.GetKarbonClusterSshArgs
        ///         {
        ///             KarbonClusterName = "&lt;YOUR-CLUSTER-NAME&gt;",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetKarbonClusterSshResult> Invoke(GetKarbonClusterSshInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetKarbonClusterSshResult>("nutanix:index/getKarbonClusterSsh:getKarbonClusterSsh", args ?? new GetKarbonClusterSshInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetKarbonClusterSshArgs : Pulumi.InvokeArgs
    {
        [Input("karbonClusterId")]
        public string? KarbonClusterId { get; set; }

        [Input("karbonClusterName")]
        public string? KarbonClusterName { get; set; }

        public GetKarbonClusterSshArgs()
        {
        }
    }

    public sealed class GetKarbonClusterSshInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("karbonClusterId")]
        public Input<string>? KarbonClusterId { get; set; }

        [Input("karbonClusterName")]
        public Input<string>? KarbonClusterName { get; set; }

        public GetKarbonClusterSshInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetKarbonClusterSshResult
    {
        public readonly string Certificate;
        public readonly string ExpiryTime;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? KarbonClusterId;
        public readonly string? KarbonClusterName;
        public readonly string PrivateKey;
        public readonly string Username;

        [OutputConstructor]
        private GetKarbonClusterSshResult(
            string certificate,

            string expiryTime,

            string id,

            string? karbonClusterId,

            string? karbonClusterName,

            string privateKey,

            string username)
        {
            Certificate = certificate;
            ExpiryTime = expiryTime;
            Id = id;
            KarbonClusterId = karbonClusterId;
            KarbonClusterName = karbonClusterName;
            PrivateKey = privateKey;
            Username = username;
        }
    }
}
