// *** 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.PrivateLink
{
    public static class GetVpcEndpointZones
    {
        /// <summary>
        /// This data source provides the Privatelink Vpc Endpoint Zones of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.111.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = AliCloud.PrivateLink.GetVpcEndpointZones.Invoke(new()
        ///     {
        ///         EndpointId = "ep-gw8boxxxxx",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["firstPrivatelinkVpcEndpointZoneId"] = example.Apply(getVpcEndpointZonesResult =&gt; getVpcEndpointZonesResult.Zones[0]?.Id),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetVpcEndpointZonesResult> InvokeAsync(GetVpcEndpointZonesArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetVpcEndpointZonesResult>("alicloud:privatelink/getVpcEndpointZones:getVpcEndpointZones", args ?? new GetVpcEndpointZonesArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides the Privatelink Vpc Endpoint Zones of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.111.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = AliCloud.PrivateLink.GetVpcEndpointZones.Invoke(new()
        ///     {
        ///         EndpointId = "ep-gw8boxxxxx",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["firstPrivatelinkVpcEndpointZoneId"] = example.Apply(getVpcEndpointZonesResult =&gt; getVpcEndpointZonesResult.Zones[0]?.Id),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetVpcEndpointZonesResult> Invoke(GetVpcEndpointZonesInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetVpcEndpointZonesResult>("alicloud:privatelink/getVpcEndpointZones:getVpcEndpointZones", args ?? new GetVpcEndpointZonesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetVpcEndpointZonesArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of the Vpc Endpoint.
        /// </summary>
        [Input("endpointId", required: true)]
        public string EndpointId { get; set; } = null!;

        [Input("outputFile")]
        public string? OutputFile { get; set; }

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

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

    public sealed class GetVpcEndpointZonesInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of the Vpc Endpoint.
        /// </summary>
        [Input("endpointId", required: true)]
        public Input<string> EndpointId { get; set; } = null!;

        [Input("outputFile")]
        public Input<string>? OutputFile { get; set; }

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

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


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

        [OutputConstructor]
        private GetVpcEndpointZonesResult(
            string endpointId,

            string id,

            ImmutableArray<string> ids,

            string? outputFile,

            string? status,

            ImmutableArray<Outputs.GetVpcEndpointZonesZoneResult> zones)
        {
            EndpointId = endpointId;
            Id = id;
            Ids = ids;
            OutputFile = outputFile;
            Status = status;
            Zones = zones;
        }
    }
}
