<filename>sdk/dotnet/PlacementGroups/ListPlacementGroups.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.PlacementGroups
{
    public static class ListPlacementGroups
    {
        public static Task<ListPlacementGroupsResult> InvokeAsync(ListPlacementGroupsArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<ListPlacementGroupsResult>("scaleway-instances:placement_groups:listPlacementGroups", args ?? new ListPlacementGroupsArgs(), options.WithDefaults());

        public static Output<ListPlacementGroupsResult> Invoke(ListPlacementGroupsInvokeArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<ListPlacementGroupsResult>("scaleway-instances:placement_groups:listPlacementGroups", args ?? new ListPlacementGroupsInvokeArgs(), options.WithDefaults());
    }


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

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

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

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


    [OutputType]
    public sealed class ListPlacementGroupsResult
    {
        public readonly Outputs.ScalewayInstanceV1ListPlacementGroupsResponse Items;

        [OutputConstructor]
        private ListPlacementGroupsResult(Outputs.ScalewayInstanceV1ListPlacementGroupsResponse items)
        {
            Items = items;
        }
    }
}
