// *** WARNING: this file was generated by pulumigen. ***
// *** 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.ScalewayInstances.Servers
{
    public static class ListServers
    {
        public static Task<ListServersResult> InvokeAsync(ListServersArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<ListServersResult>("scaleway-instances:servers:listServers", args ?? new ListServersArgs(), options.WithDefaults());

        public static Output<ListServersResult> Invoke(ListServersInvokeArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<ListServersResult>("scaleway-instances:servers:listServers", args ?? new ListServersInvokeArgs(), options.WithDefaults());
    }


    public sealed class ListServersArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The zone you want to target
        /// </summary>
        [Input("zone", required: true)]
        public string Zone { get; set; } = null!;

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

    public sealed class ListServersInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The zone you want to target
        /// </summary>
        [Input("zone", required: true)]
        public Input<string> Zone { get; set; } = null!;

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


    [OutputType]
    public sealed class ListServersResult
    {
        public readonly Outputs.ScalewayInstanceV1ListServersResponse Items;

        [OutputConstructor]
        private ListServersResult(Outputs.ScalewayInstanceV1ListServersResponse items)
        {
            Items = items;
        }
    }
}
