<reponame>Dwonczykj/gember_deploy<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 GetBinLog
    {
        /// <summary>
        /// Use this data source to query detailed information of mysql bin_log
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var binLog = Output.Create(Tencentcloud.Mysql.GetBinLog.InvokeAsync(new Tencentcloud.Mysql.GetBinLogArgs
        ///         {
        ///             InstanceId = "cdb-fitq5t9h",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetBinLogResult> InvokeAsync(GetBinLogArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetBinLogResult>("tencentcloud:Mysql/getBinLog:getBinLog", args ?? new GetBinLogArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of mysql bin_log
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var binLog = Output.Create(Tencentcloud.Mysql.GetBinLog.InvokeAsync(new Tencentcloud.Mysql.GetBinLogArgs
        ///         {
        ///             InstanceId = "cdb-fitq5t9h",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetBinLogResult> Invoke(GetBinLogInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetBinLogResult>("tencentcloud:Mysql/getBinLog:getBinLog", args ?? new GetBinLogInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetBinLogArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
        /// </summary>
        [Input("instanceId", required: true)]
        public string InstanceId { get; set; } = null!;

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

        public GetBinLogArgs()
        {
        }
    }

    public sealed class GetBinLogInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
        /// </summary>
        [Input("instanceId", required: true)]
        public Input<string> InstanceId { get; set; } = null!;

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

        public GetBinLogInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetBinLogResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// Instance ID, in the format: cdb-c1nl9rpv. Same instance ID as displayed in the ApsaraDB for Console page.
        /// </summary>
        public readonly string InstanceId;
        /// <summary>
        /// Details of binary log files that meet the query conditions.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetBinLogItemResult> Items;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetBinLogResult(
            string id,

            string instanceId,

            ImmutableArray<Outputs.GetBinLogItemResult> items,

            string? resultOutputFile)
        {
            Id = id;
            InstanceId = instanceId;
            Items = items;
            ResultOutputFile = resultOutputFile;
        }
    }
}
