// *** 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.Tdcpg
{
    public static class GetClusters
    {
        /// <summary>
        /// Use this data source to query detailed information of tdcpg clusters.
        /// 
        /// &gt; **NOTE:** This data source is still in internal testing. To experience its functions, you need to apply for a whitelist from Tencent Cloud.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var clusters = Output.Create(Tencentcloud.Tdcpg.GetClusters.InvokeAsync(new Tencentcloud.Tdcpg.GetClustersArgs
        ///         {
        ///             ClusterId = "",
        ///             ClusterName = "",
        ///             PayMode = "",
        ///             ProjectId = "",
        ///             Status = "",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetClustersResult> InvokeAsync(GetClustersArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetClustersResult>("tencentcloud:Tdcpg/getClusters:getClusters", args ?? new GetClustersArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of tdcpg clusters.
        /// 
        /// &gt; **NOTE:** This data source is still in internal testing. To experience its functions, you need to apply for a whitelist from Tencent Cloud.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var clusters = Output.Create(Tencentcloud.Tdcpg.GetClusters.InvokeAsync(new Tencentcloud.Tdcpg.GetClustersArgs
        ///         {
        ///             ClusterId = "",
        ///             ClusterName = "",
        ///             PayMode = "",
        ///             ProjectId = "",
        ///             Status = "",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetClustersResult> Invoke(GetClustersInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetClustersResult>("tencentcloud:Tdcpg/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetClustersArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// cluster id.
        /// </summary>
        [Input("clusterId")]
        public string? ClusterId { get; set; }

        /// <summary>
        /// cluster name.
        /// </summary>
        [Input("clusterName")]
        public string? ClusterName { get; set; }

        /// <summary>
        /// pay mode.
        /// </summary>
        [Input("payMode")]
        public string? PayMode { get; set; }

        /// <summary>
        /// project id, default to 0, means default project.
        /// </summary>
        [Input("projectId")]
        public int? ProjectId { get; set; }

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

        /// <summary>
        /// cluster status.
        /// </summary>
        [Input("status")]
        public string? Status { get; set; }

        public GetClustersArgs()
        {
        }
    }

    public sealed class GetClustersInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// cluster id.
        /// </summary>
        [Input("clusterId")]
        public Input<string>? ClusterId { get; set; }

        /// <summary>
        /// cluster name.
        /// </summary>
        [Input("clusterName")]
        public Input<string>? ClusterName { get; set; }

        /// <summary>
        /// pay mode.
        /// </summary>
        [Input("payMode")]
        public Input<string>? PayMode { get; set; }

        /// <summary>
        /// project id, default to 0, means default project.
        /// </summary>
        [Input("projectId")]
        public Input<int>? ProjectId { get; set; }

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

        /// <summary>
        /// cluster status.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

        public GetClustersInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetClustersResult
    {
        /// <summary>
        /// cluster id.
        /// </summary>
        public readonly string? ClusterId;
        /// <summary>
        /// cluster name.
        /// </summary>
        public readonly string? ClusterName;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// cluster list.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetClustersListResult> Lists;
        /// <summary>
        /// pay mode.
        /// </summary>
        public readonly string? PayMode;
        /// <summary>
        /// project id.
        /// </summary>
        public readonly int? ProjectId;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// status.
        /// </summary>
        public readonly string? Status;

        [OutputConstructor]
        private GetClustersResult(
            string? clusterId,

            string? clusterName,

            string id,

            ImmutableArray<Outputs.GetClustersListResult> lists,

            string? payMode,

            int? projectId,

            string? resultOutputFile,

            string? status)
        {
            ClusterId = clusterId;
            ClusterName = clusterName;
            Id = id;
            Lists = lists;
            PayMode = payMode;
            ProjectId = projectId;
            ResultOutputFile = resultOutputFile;
            Status = status;
        }
    }
}
