// *** 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 TencentCloudIAC.PulumiPackage.Tencentcloud.Kubernetes
{
    public static class GetClusterLevels
    {
        /// <summary>
        /// Provide a datasource to query TKE cluster levels.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var foo = Output.Create(Tencentcloud.Kubernetes.GetClusterLevels.InvokeAsync());
        ///         this.Level5 = foo.Apply(foo =&gt; foo.Lists?[0]?.Alias);
        ///     }
        /// 
        ///     [Output("level5")]
        ///     public Output&lt;string&gt; Level5 { get; set; }
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetClusterLevelsResult> InvokeAsync(GetClusterLevelsArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetClusterLevelsResult>("tencentcloud:Kubernetes/getClusterLevels:getClusterLevels", args ?? new GetClusterLevelsArgs(), options.WithDefaults());

        /// <summary>
        /// Provide a datasource to query TKE cluster levels.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var foo = Output.Create(Tencentcloud.Kubernetes.GetClusterLevels.InvokeAsync());
        ///         this.Level5 = foo.Apply(foo =&gt; foo.Lists?[0]?.Alias);
        ///     }
        /// 
        ///     [Output("level5")]
        ///     public Output&lt;string&gt; Level5 { get; set; }
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetClusterLevelsResult> Invoke(GetClusterLevelsInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetClusterLevelsResult>("tencentcloud:Kubernetes/getClusterLevels:getClusterLevels", args ?? new GetClusterLevelsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetClusterLevelsArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Specify cluster Id, if set will only query current cluster's available levels.
        /// </summary>
        [Input("clusterId")]
        public string? ClusterId { get; set; }

        /// <summary>
        /// Used for save result.
        /// </summary>
        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        public GetClusterLevelsArgs()
        {
        }
    }

    public sealed class GetClusterLevelsInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Specify cluster Id, if set will only query current cluster's available levels.
        /// </summary>
        [Input("clusterId")]
        public Input<string>? ClusterId { get; set; }

        /// <summary>
        /// Used for save result.
        /// </summary>
        [Input("resultOutputFile")]
        public Input<string>? ResultOutputFile { get; set; }

        public GetClusterLevelsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetClusterLevelsResult
    {
        public readonly string? ClusterId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// List of level information.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetClusterLevelsListResult> Lists;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetClusterLevelsResult(
            string? clusterId,

            string id,

            ImmutableArray<Outputs.GetClusterLevelsListResult> lists,

            string? resultOutputFile)
        {
            ClusterId = clusterId;
            Id = id;
            Lists = lists;
            ResultOutputFile = resultOutputFile;
        }
    }
}
