// *** 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.Tcaplus
{
    public static class GetIdls
    {
        /// <summary>
        /// Use this data source to query  IDL information of the TcaplusDB table.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var idTest = Output.Create(Tencentcloud.Tcaplus.GetIdls.InvokeAsync(new Tencentcloud.Tcaplus.GetIdlsArgs
        ///         {
        ///             ClusterId = "19162256624",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetIdlsResult> InvokeAsync(GetIdlsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetIdlsResult>("tencentcloud:Tcaplus/getIdls:getIdls", args ?? new GetIdlsArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query  IDL information of the TcaplusDB table.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var idTest = Output.Create(Tencentcloud.Tcaplus.GetIdls.InvokeAsync(new Tencentcloud.Tcaplus.GetIdlsArgs
        ///         {
        ///             ClusterId = "19162256624",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetIdlsResult> Invoke(GetIdlsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetIdlsResult>("tencentcloud:Tcaplus/getIdls:getIdls", args ?? new GetIdlsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetIdlsArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the TcaplusDB cluster to be query.
        /// </summary>
        [Input("clusterId", required: true)]
        public string ClusterId { get; set; } = null!;

        /// <summary>
        /// File for saving results.
        /// </summary>
        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        public GetIdlsArgs()
        {
        }
    }

    public sealed class GetIdlsInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the TcaplusDB cluster to be query.
        /// </summary>
        [Input("clusterId", required: true)]
        public Input<string> ClusterId { get; set; } = null!;

        /// <summary>
        /// File for saving results.
        /// </summary>
        [Input("resultOutputFile")]
        public Input<string>? ResultOutputFile { get; set; }

        public GetIdlsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetIdlsResult
    {
        public readonly string ClusterId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// A list of TcaplusDB table IDL. Each element contains the following attributes.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetIdlsListResult> Lists;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetIdlsResult(
            string clusterId,

            string id,

            ImmutableArray<Outputs.GetIdlsListResult> lists,

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