<gh_stars>0// *** 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.Dts
{
    public static class GetCompareTasks
    {
        /// <summary>
        /// Use this data source to query detailed information of dts compareTasks
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var compareTasks = Output.Create(Tencentcloud.Dts.GetCompareTasks.InvokeAsync(new Tencentcloud.Dts.GetCompareTasksArgs
        ///         {
        ///             JobId = "",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetCompareTasksResult> InvokeAsync(GetCompareTasksArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetCompareTasksResult>("tencentcloud:Dts/getCompareTasks:getCompareTasks", args ?? new GetCompareTasksArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of dts compareTasks
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var compareTasks = Output.Create(Tencentcloud.Dts.GetCompareTasks.InvokeAsync(new Tencentcloud.Dts.GetCompareTasksArgs
        ///         {
        ///             JobId = "",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetCompareTasksResult> Invoke(GetCompareTasksInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetCompareTasksResult>("tencentcloud:Dts/getCompareTasks:getCompareTasks", args ?? new GetCompareTasksInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetCompareTasksArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// job id.
        /// </summary>
        [Input("jobId", required: true)]
        public string JobId { get; set; } = null!;

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

        public GetCompareTasksArgs()
        {
        }
    }

    public sealed class GetCompareTasksInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// job id.
        /// </summary>
        [Input("jobId", required: true)]
        public Input<string> JobId { get; set; } = null!;

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

        public GetCompareTasksInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetCompareTasksResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// job id.
        /// </summary>
        public readonly string JobId;
        /// <summary>
        /// compare task list.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetCompareTasksListResult> Lists;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetCompareTasksResult(
            string id,

            string jobId,

            ImmutableArray<Outputs.GetCompareTasksListResult> lists,

            string? resultOutputFile)
        {
            Id = id;
            JobId = jobId;
            Lists = lists;
            ResultOutputFile = resultOutputFile;
        }
    }
}
