// *** 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 GetVpcEndpoints
    {
        /// <summary>
        /// This data source provides the Privatelink Vpc Endpoints of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.109.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.GetVpcEndpoints.Invoke(new()
        ///     {
        ///         Ids = new[]
        ///         {
        ///             "example_value",
        ///         },
        ///         NameRegex = "the_resource_name",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["firstPrivatelinkVpcEndpointId"] = example.Apply(getVpcEndpointsResult =&gt; getVpcEndpointsResult.Endpoints[0]?.Id),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetVpcEndpointsResult> InvokeAsync(GetVpcEndpointsArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetVpcEndpointsResult>("alicloud:privatelink/getVpcEndpoints:getVpcEndpoints", args ?? new GetVpcEndpointsArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides the Privatelink Vpc Endpoints of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.109.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.GetVpcEndpoints.Invoke(new()
        ///     {
        ///         Ids = new[]
        ///         {
        ///             "example_value",
        ///         },
        ///         NameRegex = "the_resource_name",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["firstPrivatelinkVpcEndpointId"] = example.Apply(getVpcEndpointsResult =&gt; getVpcEndpointsResult.Endpoints[0]?.Id),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetVpcEndpointsResult> Invoke(GetVpcEndpointsInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetVpcEndpointsResult>("alicloud:privatelink/getVpcEndpoints:getVpcEndpoints", args ?? new GetVpcEndpointsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetVpcEndpointsArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The status of Connection.
        /// </summary>
        [Input("connectionStatus")]
        public string? ConnectionStatus { get; set; }

        /// <summary>
        /// Default to `false`. Set it to `true` can output more details about resource attributes.
        /// </summary>
        [Input("enableDetails")]
        public bool? EnableDetails { get; set; }

        [Input("ids")]
        private List<string>? _ids;

        /// <summary>
        /// A list of Vpc Endpoint IDs.
        /// </summary>
        public List<string> Ids
        {
            get => _ids ?? (_ids = new List<string>());
            set => _ids = value;
        }

        /// <summary>
        /// A regex string to filter results by Vpc Endpoint name.
        /// </summary>
        [Input("nameRegex")]
        public string? NameRegex { get; set; }

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

        /// <summary>
        /// The name of the terminal node service associated with the terminal node.
        /// </summary>
        [Input("serviceName")]
        public string? ServiceName { get; set; }

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

        /// <summary>
        /// The name of Vpc Endpoint.
        /// </summary>
        [Input("vpcEndpointName")]
        public string? VpcEndpointName { get; set; }

        /// <summary>
        /// The private network to which the terminal node belongs.
        /// </summary>
        [Input("vpcId")]
        public string? VpcId { get; set; }

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

    public sealed class GetVpcEndpointsInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The status of Connection.
        /// </summary>
        [Input("connectionStatus")]
        public Input<string>? ConnectionStatus { get; set; }

        /// <summary>
        /// Default to `false`. Set it to `true` can output more details about resource attributes.
        /// </summary>
        [Input("enableDetails")]
        public Input<bool>? EnableDetails { get; set; }

        [Input("ids")]
        private InputList<string>? _ids;

        /// <summary>
        /// A list of Vpc Endpoint IDs.
        /// </summary>
        public InputList<string> Ids
        {
            get => _ids ?? (_ids = new InputList<string>());
            set => _ids = value;
        }

        /// <summary>
        /// A regex string to filter results by Vpc Endpoint name.
        /// </summary>
        [Input("nameRegex")]
        public Input<string>? NameRegex { get; set; }

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

        /// <summary>
        /// The name of the terminal node service associated with the terminal node.
        /// </summary>
        [Input("serviceName")]
        public Input<string>? ServiceName { get; set; }

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

        /// <summary>
        /// The name of Vpc Endpoint.
        /// </summary>
        [Input("vpcEndpointName")]
        public Input<string>? VpcEndpointName { get; set; }

        /// <summary>
        /// The private network to which the terminal node belongs.
        /// </summary>
        [Input("vpcId")]
        public Input<string>? VpcId { get; set; }

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


    [OutputType]
    public sealed class GetVpcEndpointsResult
    {
        public readonly string? ConnectionStatus;
        public readonly bool? EnableDetails;
        public readonly ImmutableArray<Outputs.GetVpcEndpointsEndpointResult> Endpoints;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableArray<string> Ids;
        public readonly string? NameRegex;
        public readonly ImmutableArray<string> Names;
        public readonly string? OutputFile;
        public readonly string? ServiceName;
        public readonly string? Status;
        public readonly string? VpcEndpointName;
        public readonly string? VpcId;

        [OutputConstructor]
        private GetVpcEndpointsResult(
            string? connectionStatus,

            bool? enableDetails,

            ImmutableArray<Outputs.GetVpcEndpointsEndpointResult> endpoints,

            string id,

            ImmutableArray<string> ids,

            string? nameRegex,

            ImmutableArray<string> names,

            string? outputFile,

            string? serviceName,

            string? status,

            string? vpcEndpointName,

            string? vpcId)
        {
            ConnectionStatus = connectionStatus;
            EnableDetails = enableDetails;
            Endpoints = endpoints;
            Id = id;
            Ids = ids;
            NameRegex = nameRegex;
            Names = names;
            OutputFile = outputFile;
            ServiceName = serviceName;
            Status = status;
            VpcEndpointName = vpcEndpointName;
            VpcId = vpcId;
        }
    }
}
