// *** 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.Redis
{
    public static class GetInstanceZoneInfo
    {
        /// <summary>
        /// Use this data source to query detailed information of redis instance_zone_info
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var instanceZoneInfo = Output.Create(Tencentcloud.Redis.GetInstanceZoneInfo.InvokeAsync(new Tencentcloud.Redis.GetInstanceZoneInfoArgs
        ///         {
        ///             InstanceId = "crs-c1nl9rpv",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetInstanceZoneInfoResult> InvokeAsync(GetInstanceZoneInfoArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetInstanceZoneInfoResult>("tencentcloud:Redis/getInstanceZoneInfo:getInstanceZoneInfo", args ?? new GetInstanceZoneInfoArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of redis instance_zone_info
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var instanceZoneInfo = Output.Create(Tencentcloud.Redis.GetInstanceZoneInfo.InvokeAsync(new Tencentcloud.Redis.GetInstanceZoneInfoArgs
        ///         {
        ///             InstanceId = "crs-c1nl9rpv",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetInstanceZoneInfoResult> Invoke(GetInstanceZoneInfoInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetInstanceZoneInfoResult>("tencentcloud:Redis/getInstanceZoneInfo:getInstanceZoneInfo", args ?? new GetInstanceZoneInfoInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetInstanceZoneInfoArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of instance.
        /// </summary>
        [Input("instanceId")]
        public string? InstanceId { get; set; }

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

        public GetInstanceZoneInfoArgs()
        {
        }
    }

    public sealed class GetInstanceZoneInfoInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of instance.
        /// </summary>
        [Input("instanceId")]
        public Input<string>? InstanceId { get; set; }

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

        public GetInstanceZoneInfoInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetInstanceZoneInfoResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? InstanceId;
        /// <summary>
        /// List of instance node groups.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetInstanceZoneInfoReplicaGroupResult> ReplicaGroups;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetInstanceZoneInfoResult(
            string id,

            string? instanceId,

            ImmutableArray<Outputs.GetInstanceZoneInfoReplicaGroupResult> replicaGroups,

            string? resultOutputFile)
        {
            Id = id;
            InstanceId = instanceId;
            ReplicaGroups = replicaGroups;
            ResultOutputFile = resultOutputFile;
        }
    }
}
