<filename>sdk/dotnet/User_data/GetServerUserData.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.User_data
{
    public static class GetServerUserData
    {
        public static Task<GetServerUserDataResult> InvokeAsync(GetServerUserDataArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetServerUserDataResult>("scaleway-instances:user_data:getServerUserData", args ?? new GetServerUserDataArgs(), options.WithDefaults());

        public static Output<GetServerUserDataResult> Invoke(GetServerUserDataInvokeArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetServerUserDataResult>("scaleway-instances:user_data:getServerUserData", args ?? new GetServerUserDataInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetServerUserDataArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Key of the user data to get
        /// </summary>
        [Input("key", required: true)]
        public string Key { get; set; } = null!;

        /// <summary>
        /// UUID of the server
        /// </summary>
        [Input("server_id", required: true)]
        public string Server_id { get; set; } = null!;

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

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

    public sealed class GetServerUserDataInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Key of the user data to get
        /// </summary>
        [Input("key", required: true)]
        public Input<string> Key { get; set; } = null!;

        /// <summary>
        /// UUID of the server
        /// </summary>
        [Input("server_id", required: true)]
        public Input<string> Server_id { get; set; } = null!;

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

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


    [OutputType]
    public sealed class GetServerUserDataResult
    {
        public readonly Outputs.ScalewayStdFile Items;

        [OutputConstructor]
        private GetServerUserDataResult(Outputs.ScalewayStdFile items)
        {
            Items = items;
        }
    }
}
