<filename>sdk/dotnet/SecurityGroups/ListSecurityGroups.cs// *** 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.SecurityGroups
{
    public static class ListSecurityGroups
    {
        public static Task<ListSecurityGroupsResult> InvokeAsync(ListSecurityGroupsArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<ListSecurityGroupsResult>("scaleway-instances:security_groups:listSecurityGroups", args ?? new ListSecurityGroupsArgs(), options.WithDefaults());

        public static Output<ListSecurityGroupsResult> Invoke(ListSecurityGroupsInvokeArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<ListSecurityGroupsResult>("scaleway-instances:security_groups:listSecurityGroups", args ?? new ListSecurityGroupsInvokeArgs(), options.WithDefaults());
    }


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

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

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

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


    [OutputType]
    public sealed class ListSecurityGroupsResult
    {
        public readonly Outputs.ScalewayInstanceV1ListSecurityGroupsResponse Items;

        [OutputConstructor]
        private ListSecurityGroupsResult(Outputs.ScalewayInstanceV1ListSecurityGroupsResponse items)
        {
            Items = items;
        }
    }
}
