<filename>sdk/dotnet/Tencentcloud/Mysql/GetBackupSummaries.cs<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.Mysql
{
    public static class GetBackupSummaries
    {
        /// <summary>
        /// Use this data source to query detailed information of mysql backup_summaries
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var backupSummaries = Output.Create(Tencentcloud.Mysql.GetBackupSummaries.InvokeAsync(new Tencentcloud.Mysql.GetBackupSummariesArgs
        ///         {
        ///             OrderBy = "BackupVolume",
        ///             OrderDirection = "ASC",
        ///             Product = "mysql",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetBackupSummariesResult> InvokeAsync(GetBackupSummariesArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetBackupSummariesResult>("tencentcloud:Mysql/getBackupSummaries:getBackupSummaries", args ?? new GetBackupSummariesArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of mysql backup_summaries
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var backupSummaries = Output.Create(Tencentcloud.Mysql.GetBackupSummaries.InvokeAsync(new Tencentcloud.Mysql.GetBackupSummariesArgs
        ///         {
        ///             OrderBy = "BackupVolume",
        ///             OrderDirection = "ASC",
        ///             Product = "mysql",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetBackupSummariesResult> Invoke(GetBackupSummariesInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetBackupSummariesResult>("tencentcloud:Mysql/getBackupSummaries:getBackupSummaries", args ?? new GetBackupSummariesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetBackupSummariesArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Specify to sort by a certain item, the optional values include: BackupVolume: backup volume, DataBackupVolume: data backup volume, BinlogBackupVolume: log backup volume, AutoBackupVolume: automatic backup volume, ManualBackupVolume: manual backup volume. By default, they are sorted by BackupVolume.
        /// </summary>
        [Input("orderBy")]
        public string? OrderBy { get; set; }

        /// <summary>
        /// Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
        /// </summary>
        [Input("orderDirection")]
        public string? OrderDirection { get; set; }

        /// <summary>
        /// The type of cloud database product to be queried, currently only supports `mysql`.
        /// </summary>
        [Input("product", required: true)]
        public string Product { get; set; } = null!;

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

        public GetBackupSummariesArgs()
        {
        }
    }

    public sealed class GetBackupSummariesInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Specify to sort by a certain item, the optional values include: BackupVolume: backup volume, DataBackupVolume: data backup volume, BinlogBackupVolume: log backup volume, AutoBackupVolume: automatic backup volume, ManualBackupVolume: manual backup volume. By default, they are sorted by BackupVolume.
        /// </summary>
        [Input("orderBy")]
        public Input<string>? OrderBy { get; set; }

        /// <summary>
        /// Specify the sorting direction, optional values include: ASC: forward order, DESC: reverse order. The default is ASC.
        /// </summary>
        [Input("orderDirection")]
        public Input<string>? OrderDirection { get; set; }

        /// <summary>
        /// The type of cloud database product to be queried, currently only supports `mysql`.
        /// </summary>
        [Input("product", required: true)]
        public Input<string> Product { get; set; } = null!;

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

        public GetBackupSummariesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetBackupSummariesResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// Instance backup statistics entries.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetBackupSummariesItemResult> Items;
        public readonly string? OrderBy;
        public readonly string? OrderDirection;
        public readonly string Product;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetBackupSummariesResult(
            string id,

            ImmutableArray<Outputs.GetBackupSummariesItemResult> items,

            string? orderBy,

            string? orderDirection,

            string product,

            string? resultOutputFile)
        {
            Id = id;
            Items = items;
            OrderBy = orderBy;
            OrderDirection = orderDirection;
            Product = product;
            ResultOutputFile = resultOutputFile;
        }
    }
}
