adventurous-garage-59192
01/20/2020, 12:59 PMOutput<object>
return from RequireOutput
is fine if you're using Output.Format
or related, but isn't so great if you just want to grab it and pass it as-in into some property. The two options seem to be (string)await infra.RequireValueAsync(".....")
or infra.RequireOutput(".....").Apply(x=> (string)x);
.
As a side note, the docs still say that SR isn't available in C# yet.tall-librarian-49374
01/20/2020, 1:05 PMRequireOutput
. You should be able to pass an output to any resource property downstream. If you need to make decisions, like use the value in if
statements, than await RequireValueAsync
should be the easiest.adventurous-garage-59192
01/20/2020, 1:49 PMOutput<object>
whilst the Apply
returns an Output<string>
. The former is rejected by Input<string>
tall-librarian-49374
01/20/2020, 1:59 PMadventurous-garage-59192
01/20/2020, 2:18 PMConfig
and allow the type to be specified?