victorious-ghost-35676
08/22/2022, 7:31 PMOutput
that is point to a InputList
something like this.
[Output("UserIds")]
public Output<string> UserIds { get; private set; }
var userIds = new InputList<string>();
UserIds = userIds
UserIds = 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 typeInput -> 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