sparse-intern-71089
08/22/2022, 7:31 PMvictorious-ghost-35676
08/22/2022, 7:32 PMvictorious-ghost-35676
08/22/2022, 7:32 PMUserIds = userIds.ToOutput()
I see that I can do this ; would this be the right direction?bored-oyster-3147
08/22/2022, 8:59 PMInputList<T>
here: https://www.pulumi.com/docs/reference/pkg/dotnet/Pulumi/Pulumi.InputList-1.html
You'll see that InputList<T>
can be cast to Output<List<T>>
or Output<T>[]
or Output<IEnumerable<T>>
. But simply casting it to Output<T>
doesn't work, you're losing the collection part of the typebored-oyster-3147
08/22/2022, 9:03 PMInput -> Output
you can only cast Output -> Input
. So yes in this case .ToOutput()
is what you want and it should give you Output<ImmutableArray<string>>
victorious-ghost-35676
08/22/2022, 9:04 PM