purple-arm-63328
11/16/2020, 9:32 PMgentle-diamond-70147
11/16/2020, 9:33 PMpurple-arm-63328
11/16/2020, 9:36 PMgentle-diamond-70147
11/16/2020, 9:48 PMpurple-arm-63328
11/16/2020, 9:54 PMclean-dentist-2515
11/16/2020, 9:59 PMOutput
which is like a future or promise
the idiom I've seen elsewhere in the docs is:
real_value = some_output.apply(lambda val: val)
apply
gives you the chance to modify the returned value
I'm not sure if there's a shortcut for when you just want the resolved value unchanged
I don't think you have to interact with any async event loop stuff directlypurple-arm-63328
11/16/2020, 10:11 PMclean-dentist-2515
11/16/2020, 10:14 PMAwaitableGetSubnetIdsResult
?
if you try to access properties on that object like .ids
do they return an Output
?purple-arm-63328
11/16/2020, 10:14 PMclean-dentist-2515
11/16/2020, 10:14 PMpurple-arm-63328
11/16/2020, 10:15 PMclean-dentist-2515
11/16/2020, 10:30 PMoutput = Output.from_input(get_subnet_ids(...))
value = output.apply(lambda val: val)
...can work?
🤷♂️purple-arm-63328
11/16/2020, 10:36 PMgentle-diamond-70147
11/16/2020, 11:35 PMpurple-arm-63328
11/16/2020, 11:47 PMgentle-diamond-70147
11/16/2020, 11:55 PMpurple-arm-63328
11/17/2020, 1:11 AMapply
, it started working. 🙏