// *** 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 GetZoneConfig
    {
        /// <summary>
        /// Use this data source to query the available database specifications for different regions. And a maximum of 20 requests can be initiated per second for this query.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var mysql = Output.Create(Tencentcloud.Mysql.GetZoneConfig.InvokeAsync(new Tencentcloud.Mysql.GetZoneConfigArgs
        ///         {
        ///             Region = "ap-guangzhou",
        ///             ResultOutputFile = "mytestpath",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetZoneConfigResult> InvokeAsync(GetZoneConfigArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetZoneConfigResult>("tencentcloud:Mysql/getZoneConfig:getZoneConfig", args ?? new GetZoneConfigArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query the available database specifications for different regions. And a maximum of 20 requests can be initiated per second for this query.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var mysql = Output.Create(Tencentcloud.Mysql.GetZoneConfig.InvokeAsync(new Tencentcloud.Mysql.GetZoneConfigArgs
        ///         {
        ///             Region = "ap-guangzhou",
        ///             ResultOutputFile = "mytestpath",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetZoneConfigResult> Invoke(GetZoneConfigInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetZoneConfigResult>("tencentcloud:Mysql/getZoneConfig:getZoneConfig", args ?? new GetZoneConfigInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetZoneConfigArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Region parameter, which is used to identify the region to which the data you want to work with belongs.
        /// </summary>
        [Input("region")]
        public string? Region { get; set; }

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

        public GetZoneConfigArgs()
        {
        }
    }

    public sealed class GetZoneConfigInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Region parameter, which is used to identify the region to which the data you want to work with belongs.
        /// </summary>
        [Input("region")]
        public Input<string>? Region { get; set; }

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

        public GetZoneConfigInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetZoneConfigResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// A list of zone config. Each element contains the following attributes:
        /// </summary>
        public readonly ImmutableArray<Outputs.GetZoneConfigListResult> Lists;
        public readonly string? Region;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetZoneConfigResult(
            string id,

            ImmutableArray<Outputs.GetZoneConfigListResult> lists,

            string? region,

            string? resultOutputFile)
        {
            Id = id;
            Lists = lists;
            Region = region;
            ResultOutputFile = resultOutputFile;
        }
    }
}
