// *** 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;

namespace Pulumi.Tctest.Mysql
{
    public static class BackupList
    {
        public static Task<BackupListResult> InvokeAsync(BackupListArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<BackupListResult>("tctest:Mysql/backupList:BackupList", args ?? new BackupListArgs(), options.WithDefaults());

        public static Output<BackupListResult> Invoke(BackupListInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<BackupListResult>("tctest:Mysql/backupList:BackupList", args ?? new BackupListInvokeArgs(), options.WithDefaults());
    }


    public sealed class BackupListArgs : Pulumi.InvokeArgs
    {
        [Input("maxNumber")]
        public int? MaxNumber { get; set; }

        [Input("mysqlId", required: true)]
        public string MysqlId { get; set; } = null!;

        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        public BackupListArgs()
        {
        }
    }

    public sealed class BackupListInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("maxNumber")]
        public Input<int>? MaxNumber { get; set; }

        [Input("mysqlId", required: true)]
        public Input<string> MysqlId { get; set; } = null!;

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

        public BackupListInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class BackupListResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableArray<Outputs.BackupListListResult> Lists;
        public readonly int? MaxNumber;
        public readonly string MysqlId;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private BackupListResult(
            string id,

            ImmutableArray<Outputs.BackupListListResult> lists,

            int? maxNumber,

            string mysqlId,

            string? resultOutputFile)
        {
            Id = id;
            Lists = lists;
            MaxNumber = maxNumber;
            MysqlId = mysqlId;
            ResultOutputFile = resultOutputFile;
        }
    }
}
