rapid-lamp-57703
03/18/2020, 8:55 AM[Output]
public Output<ImmutableArray<string>> UploadedUri { get; set; } = Output.Create(ImmutableArray.Create<string>("123"));
Any tips or pointers? how do i get an array of things? I've seen dictionary before.. but not list/array.tall-librarian-49374
03/18/2020, 9:08 AMrapid-lamp-57703
03/18/2020, 9:27 AMtall-librarian-49374
03/18/2020, 5:23 PMOutput<ImmutableArray<Output<string>>
doesn’t sound right to me. You should be able to process whatever you have to Output<ImmutableArray<string>>
. Flatten the output.rapid-lamp-57703
03/19/2020, 12:55 PMtall-librarian-49374
03/19/2020, 2:13 PMOutput<ImmutableArray<Output<string>>> notGood =
Output.Create(new[] {Output.Create("1"), Output.Create("2")}.ToImmutableArray());
Output<ImmutableArray<string>> better = notGood.Apply(vs =>
Output.All(vs.Select(v => (Input<string>)v).ToImmutableArray()));
Output.All
doesn’t accept outputs… We should probably add an overload for that.rapid-lamp-57703
03/19/2020, 2:16 PMtall-librarian-49374
03/19/2020, 2:20 PM