pulumi/tests/testdata/codegen/simplified-invokes/dotnet/GetArrayCustomResult.cs

31 lines
1.4 KiB
C#

// *** 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.Std
{
public static class GetArrayCustomResult
{
public static async Task<List<Outputs.CustomResult>> InvokeAsync(double? a = null, InvokeOptions? invokeOptions = null)
{
var builder = ImmutableDictionary.CreateBuilder<string, object?>();
builder["a"] = a;
var args = new global::Pulumi.DictionaryInvokeArgs(builder.ToImmutableDictionary());
return await global::Pulumi.Deployment.Instance.InvokeSingleAsync<List<Outputs.CustomResult>>("std:index:GetArrayCustomResult", args, invokeOptions.WithDefaults());
}
public static Output<List<Outputs.CustomResult>> Invoke(Input<double?>? a = null, InvokeOptions? invokeOptions = null)
{
var builder = ImmutableDictionary.CreateBuilder<string, object?>();
builder["a"] = a;
var args = new global::Pulumi.DictionaryInvokeArgs(builder.ToImmutableDictionary());
return global::Pulumi.Deployment.Instance.InvokeSingle<List<Outputs.CustomResult>>("std:index:GetArrayCustomResult", args, invokeOptions.WithDefaults());
}
}
}