<reponame>rhysmdnz/pulumi-alicloud-rhys-hacks// *** 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.AliCloud.Pvtz
{
    public static class GetResolverZones
    {
        /// <summary>
        /// This data source provides the available zones with the Private Zone Resolver of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.143.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @default = AliCloud.Pvtz.GetResolverZones.Invoke(new()
        ///     {
        ///         Status = "NORMAL",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["firstZonesId"] = @default.Apply(getResolverZonesResult =&gt; getResolverZonesResult).Apply(@default =&gt; @default.Apply(getResolverZonesResult =&gt; getResolverZonesResult.Zones[0]?.ZoneId)),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetResolverZonesResult> InvokeAsync(GetResolverZonesArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetResolverZonesResult>("alicloud:pvtz/getResolverZones:getResolverZones", args ?? new GetResolverZonesArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides the available zones with the Private Zone Resolver of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.143.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @default = AliCloud.Pvtz.GetResolverZones.Invoke(new()
        ///     {
        ///         Status = "NORMAL",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["firstZonesId"] = @default.Apply(getResolverZonesResult =&gt; getResolverZonesResult).Apply(@default =&gt; @default.Apply(getResolverZonesResult =&gt; getResolverZonesResult.Zones[0]?.ZoneId)),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetResolverZonesResult> Invoke(GetResolverZonesInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetResolverZonesResult>("alicloud:pvtz/getResolverZones:getResolverZones", args ?? new GetResolverZonesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetResolverZonesArgs : global::Pulumi.InvokeArgs
    {
        [Input("outputFile")]
        public string? OutputFile { get; set; }

        /// <summary>
        /// The status of the Zone.
        /// </summary>
        [Input("status")]
        public string? Status { get; set; }

        public GetResolverZonesArgs()
        {
        }
        public static new GetResolverZonesArgs Empty => new GetResolverZonesArgs();
    }

    public sealed class GetResolverZonesInvokeArgs : global::Pulumi.InvokeArgs
    {
        [Input("outputFile")]
        public Input<string>? OutputFile { get; set; }

        /// <summary>
        /// The status of the Zone.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

        public GetResolverZonesInvokeArgs()
        {
        }
        public static new GetResolverZonesInvokeArgs Empty => new GetResolverZonesInvokeArgs();
    }


    [OutputType]
    public sealed class GetResolverZonesResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? OutputFile;
        public readonly string? Status;
        public readonly ImmutableArray<Outputs.GetResolverZonesZoneResult> Zones;

        [OutputConstructor]
        private GetResolverZonesResult(
            string id,

            string? outputFile,

            string? status,

            ImmutableArray<Outputs.GetResolverZonesZoneResult> zones)
        {
            Id = id;
            OutputFile = outputFile;
            Status = status;
            Zones = zones;
        }
    }
}
