sparse-intern-71089
01/23/2023, 10:34 AMsteep-minister-28895
01/24/2023, 11:52 AMlayers field expect List<String> (with Output<List<String>> overload), not String?
I wrote this piece of code that compiles (notice Output.all usage):
var exampleLayerVersion = new LayerVersion("exampleLayerVersion");
var exampleFunction = new Function("exampleFunction", FunctionArgs.builder()
.layers(Output.all(exampleLayerVersion.arn()))
.build());
You can also use .applyValue if you prefer:
.layers(exampleLayerVersion.arn().applyValue(List::of))
Let me know if that helps. If not, having a code snippet (with import statements) could help me understand your issue better.stale-nail-55781
01/24/2023, 12:09 PMString... where a single String can be passed.
But to the main point, that does help. Output.all(...) does the trick, thanks!stale-nail-55781
01/24/2023, 12:10 PM