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 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by