<gh_stars>0// *** 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 GetLbFrontend
    {
        /// <summary>
        /// Get information about Scaleway Load-Balancer Frontends.
        /// For more information, see [the documentation](https://developers.scaleway.com/en/products/lb/zoned_api/#frontends-a6a28d).
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Scaleway = Pulumi.Scaleway;
        /// using Scaleway = luxifer.Scaleway;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var ip01 = new Scaleway.LbIp("ip01");
        /// 
        ///     var lb01 = new Scaleway.Lb("lb01", new()
        ///     {
        ///         IpId = ip01.Id,
        ///         Type = "lb-s",
        ///     });
        /// 
        ///     var bkd01 = new Scaleway.LbBackend("bkd01", new()
        ///     {
        ///         LbId = lb01.Id,
        ///         ForwardProtocol = "tcp",
        ///         ForwardPort = 80,
        ///         ProxyProtocol = "none",
        ///     });
        /// 
        ///     var frt01 = new Scaleway.LbFrontend("frt01", new()
        ///     {
        ///         LbId = lb01.Id,
        ///         BackendId = bkd01.Id,
        ///         InboundPort = 80,
        ///     });
        /// 
        ///     var byID = Scaleway.GetLbFrontend.Invoke(new()
        ///     {
        ///         FrontendId = frt01.Id,
        ///     });
        /// 
        ///     var byName = Scaleway.GetLbFrontend.Invoke(new()
        ///     {
        ///         Name = frt01.Name,
        ///         LbId = lb01.Id,
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetLbFrontendResult> InvokeAsync(GetLbFrontendArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetLbFrontendResult>("scaleway:index/getLbFrontend:getLbFrontend", args ?? new GetLbFrontendArgs(), options.WithDefaults());

        /// <summary>
        /// Get information about Scaleway Load-Balancer Frontends.
        /// For more information, see [the documentation](https://developers.scaleway.com/en/products/lb/zoned_api/#frontends-a6a28d).
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Scaleway = Pulumi.Scaleway;
        /// using Scaleway = luxifer.Scaleway;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var ip01 = new Scaleway.LbIp("ip01");
        /// 
        ///     var lb01 = new Scaleway.Lb("lb01", new()
        ///     {
        ///         IpId = ip01.Id,
        ///         Type = "lb-s",
        ///     });
        /// 
        ///     var bkd01 = new Scaleway.LbBackend("bkd01", new()
        ///     {
        ///         LbId = lb01.Id,
        ///         ForwardProtocol = "tcp",
        ///         ForwardPort = 80,
        ///         ProxyProtocol = "none",
        ///     });
        /// 
        ///     var frt01 = new Scaleway.LbFrontend("frt01", new()
        ///     {
        ///         LbId = lb01.Id,
        ///         BackendId = bkd01.Id,
        ///         InboundPort = 80,
        ///     });
        /// 
        ///     var byID = Scaleway.GetLbFrontend.Invoke(new()
        ///     {
        ///         FrontendId = frt01.Id,
        ///     });
        /// 
        ///     var byName = Scaleway.GetLbFrontend.Invoke(new()
        ///     {
        ///         Name = frt01.Name,
        ///         LbId = lb01.Id,
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetLbFrontendResult> Invoke(GetLbFrontendInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetLbFrontendResult>("scaleway:index/getLbFrontend:getLbFrontend", args ?? new GetLbFrontendInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetLbFrontendArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The frontend id.
        /// - Only one of `name` and `frontend_id` should be specified.
        /// </summary>
        [Input("frontendId")]
        public string? FrontendId { get; set; }

        /// <summary>
        /// The load-balancer ID this frontend is attached to.
        /// </summary>
        [Input("lbId")]
        public string? LbId { get; set; }

        /// <summary>
        /// The name of the frontend.
        /// - When using the `name` you should specify the `lb-id`
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

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

    public sealed class GetLbFrontendInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The frontend id.
        /// - Only one of `name` and `frontend_id` should be specified.
        /// </summary>
        [Input("frontendId")]
        public Input<string>? FrontendId { get; set; }

        /// <summary>
        /// The load-balancer ID this frontend is attached to.
        /// </summary>
        [Input("lbId")]
        public Input<string>? LbId { get; set; }

        /// <summary>
        /// The name of the frontend.
        /// - When using the `name` you should specify the `lb-id`
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

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


    [OutputType]
    public sealed class GetLbFrontendResult
    {
        public readonly ImmutableArray<Outputs.GetLbFrontendAclResult> Acls;
        public readonly string BackendId;
        public readonly string CertificateId;
        public readonly ImmutableArray<string> CertificateIds;
        public readonly bool EnableHttp3;
        public readonly string? FrontendId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly int InboundPort;
        public readonly string? LbId;
        public readonly string? Name;
        public readonly string TimeoutClient;

        [OutputConstructor]
        private GetLbFrontendResult(
            ImmutableArray<Outputs.GetLbFrontendAclResult> acls,

            string backendId,

            string certificateId,

            ImmutableArray<string> certificateIds,

            bool enableHttp3,

            string? frontendId,

            string id,

            int inboundPort,

            string? lbId,

            string? name,

            string timeoutClient)
        {
            Acls = acls;
            BackendId = backendId;
            CertificateId = certificateId;
            CertificateIds = certificateIds;
            EnableHttp3 = enableHttp3;
            FrontendId = frontendId;
            Id = id;
            InboundPort = inboundPort;
            LbId = lbId;
            Name = name;
            TimeoutClient = timeoutClient;
        }
    }
}
