<reponame>luxifer/pulumi-scaleway// *** 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 GetLb
    {
        /// <summary>
        /// Gets information about a Load Balancer.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Scaleway = Pulumi.Scaleway;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var byName = Scaleway.GetLb.Invoke(new()
        ///     {
        ///         Name = "foobar",
        ///     });
        /// 
        ///     var byId = Scaleway.GetLb.Invoke(new()
        ///     {
        ///         LbId = "11111111-1111-1111-1111-111111111111",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetLbResult> InvokeAsync(GetLbArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetLbResult>("scaleway:index/getLb:getLb", args ?? new GetLbArgs(), options.WithDefaults());

        /// <summary>
        /// Gets information about a Load Balancer.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Scaleway = Pulumi.Scaleway;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var byName = Scaleway.GetLb.Invoke(new()
        ///     {
        ///         Name = "foobar",
        ///     });
        /// 
        ///     var byId = Scaleway.GetLb.Invoke(new()
        ///     {
        ///         LbId = "11111111-1111-1111-1111-111111111111",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetLbResult> Invoke(GetLbInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetLbResult>("scaleway:index/getLb:getLb", args ?? new GetLbInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetLbArgs : global::Pulumi.InvokeArgs
    {
        [Input("lbId")]
        public string? LbId { get; set; }

        /// <summary>
        /// The load balancer name.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

        [Input("releaseIp")]
        public bool? ReleaseIp { get; set; }

        /// <summary>
        /// (Defaults to provider `zone`) The zone in which the LB exists.
        /// </summary>
        [Input("zone")]
        public string? Zone { get; set; }

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

    public sealed class GetLbInvokeArgs : global::Pulumi.InvokeArgs
    {
        [Input("lbId")]
        public Input<string>? LbId { get; set; }

        /// <summary>
        /// The load balancer name.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        [Input("releaseIp")]
        public Input<bool>? ReleaseIp { get; set; }

        /// <summary>
        /// (Defaults to provider `zone`) The zone in which the LB exists.
        /// </summary>
        [Input("zone")]
        public Input<string>? Zone { get; set; }

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


    [OutputType]
    public sealed class GetLbResult
    {
        public readonly string Description;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// The load-balancer public IP Address.
        /// </summary>
        public readonly string IpAddress;
        public readonly string IpId;
        public readonly string? LbId;
        public readonly string? Name;
        public readonly string OrganizationId;
        public readonly ImmutableArray<Outputs.GetLbPrivateNetworkResult> PrivateNetworks;
        /// <summary>
        /// (Defaults to provider `project_id`) The ID of the project the LB is associated with.
        /// </summary>
        public readonly string ProjectId;
        public readonly string Region;
        public readonly bool? ReleaseIp;
        public readonly string SslCompatibilityLevel;
        /// <summary>
        /// The tags associated with the load-balancer.
        /// </summary>
        public readonly ImmutableArray<string> Tags;
        /// <summary>
        /// The type of the load-balancer.
        /// </summary>
        public readonly string Type;
        /// <summary>
        /// (Defaults to provider `zone`) The zone in which the LB exists.
        /// </summary>
        public readonly string? Zone;

        [OutputConstructor]
        private GetLbResult(
            string description,

            string id,

            string ipAddress,

            string ipId,

            string? lbId,

            string? name,

            string organizationId,

            ImmutableArray<Outputs.GetLbPrivateNetworkResult> privateNetworks,

            string projectId,

            string region,

            bool? releaseIp,

            string sslCompatibilityLevel,

            ImmutableArray<string> tags,

            string type,

            string? zone)
        {
            Description = description;
            Id = id;
            IpAddress = ipAddress;
            IpId = ipId;
            LbId = lbId;
            Name = name;
            OrganizationId = organizationId;
            PrivateNetworks = privateNetworks;
            ProjectId = projectId;
            Region = region;
            ReleaseIp = releaseIp;
            SslCompatibilityLevel = sslCompatibilityLevel;
            Tags = tags;
            Type = type;
            Zone = zone;
        }
    }
}
