// *** 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 luxifer.Scaleway
{
    public static class GetLbFrontends
    {
        /// <summary>
        /// Gets information about multiple Load Balancer Frontends.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Scaleway = Pulumi.Scaleway;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var byLBID = Scaleway.GetLbFrontends.Invoke(new()
        ///     {
        ///         LbId = scaleway_lb.Lb01.Id,
        ///     });
        /// 
        ///     var byLBIDAndName = Scaleway.GetLbFrontends.Invoke(new()
        ///     {
        ///         LbId = scaleway_lb.Lb01.Id,
        ///         Name = "tf-frontend-datasource",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetLbFrontendsResult> InvokeAsync(GetLbFrontendsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetLbFrontendsResult>("scaleway:index/getLbFrontends:getLbFrontends", args ?? new GetLbFrontendsArgs(), options.WithDefaults());

        /// <summary>
        /// Gets information about multiple Load Balancer Frontends.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Scaleway = Pulumi.Scaleway;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var byLBID = Scaleway.GetLbFrontends.Invoke(new()
        ///     {
        ///         LbId = scaleway_lb.Lb01.Id,
        ///     });
        /// 
        ///     var byLBIDAndName = Scaleway.GetLbFrontends.Invoke(new()
        ///     {
        ///         LbId = scaleway_lb.Lb01.Id,
        ///         Name = "tf-frontend-datasource",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetLbFrontendsResult> Invoke(GetLbFrontendsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetLbFrontendsResult>("scaleway:index/getLbFrontends:getLbFrontends", args ?? new GetLbFrontendsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetLbFrontendsArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
        /// </summary>
        [Input("lbId", required: true)]
        public string LbId { get; set; } = null!;

        /// <summary>
        /// The frontend name used as filter. Frontends with a name like it are listed.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

        [Input("projectId")]
        public string? ProjectId { get; set; }

        /// <summary>
        /// `zone`) The zone in which frontends exist.
        /// </summary>
        [Input("zone")]
        public string? Zone { get; set; }

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

    public sealed class GetLbFrontendsInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
        /// </summary>
        [Input("lbId", required: true)]
        public Input<string> LbId { get; set; } = null!;

        /// <summary>
        /// The frontend name used as filter. Frontends with a name like it are listed.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

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

        /// <summary>
        /// `zone`) The zone in which frontends exist.
        /// </summary>
        [Input("zone")]
        public Input<string>? Zone { get; set; }

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


    [OutputType]
    public sealed class GetLbFrontendsResult
    {
        /// <summary>
        /// List of found frontends
        /// </summary>
        public readonly ImmutableArray<Outputs.GetLbFrontendsFrontendResult> Frontends;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string LbId;
        public readonly string? Name;
        public readonly string OrganizationId;
        public readonly string ProjectId;
        public readonly string Zone;

        [OutputConstructor]
        private GetLbFrontendsResult(
            ImmutableArray<Outputs.GetLbFrontendsFrontendResult> frontends,

            string id,

            string lbId,

            string? name,

            string organizationId,

            string projectId,

            string zone)
        {
            Frontends = frontends;
            Id = id;
            LbId = lbId;
            Name = name;
            OrganizationId = organizationId;
            ProjectId = projectId;
            Zone = zone;
        }
    }
}
