// *** WARNING: this file was generated by test. ***
// *** 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.Mypkg
{
    public static class FuncWithDefaultValue
    {
        /// <summary>
        /// Check codegen of functions with default values.
        /// </summary>
        public static Task<FuncWithDefaultValueResult> InvokeAsync(FuncWithDefaultValueArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<FuncWithDefaultValueResult>("mypkg::funcWithDefaultValue", args ?? new FuncWithDefaultValueArgs(), options.WithVersion());
    }


    public sealed class FuncWithDefaultValueArgs : Pulumi.InvokeArgs
    {
        [Input("a", required: true)]
        public string A { get; set; } = null!;

        [Input("b")]
        public string? B { get; set; }

        public FuncWithDefaultValueArgs()
        {
            B = "b-default";
        }
    }


    [OutputType]
    public sealed class FuncWithDefaultValueResult
    {
        public readonly string R;

        [OutputConstructor]
        private FuncWithDefaultValueResult(string r)
        {
            R = r;
        }
    }
}
