ancient-eve-13947
08/17/2021, 5:57 PMazure.types.input.web.NameValuePairArgs[]
to pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>
?little-cartoon-10569
08/17/2021, 10:02 PMpulumi.output("value")
to turn it into a pulumi.Input<string>
. You'd have to loop over your array and construct your dict using pulumi.output
, then after the loop wrap the entire dict in pulumi.output
.{ [key: string]: pulumi.Input<string> }
you should be able to start with an any
. Something like var dict: any = {}
.
Then when adding values, use the array-style notation dict["newvar"] = pulumi.output("newval");
any
, but I'm not sure it'd be worth it...pulumi.output()
, since pulumi.Input<string>
is a union type of both string
and pulumi.Output<string>
. However I have found that working with pulumi.output()
when solving this sort of issue helps me remember which bits are which. You may be able to remove pulumi.output()
once you've got things working and strengthened your typescript-fu ;)ancient-eve-13947
08/18/2021, 10:37 AM