sparse-intern-71089
03/12/2023, 5:54 PMlittle-cartoon-10569
03/12/2023, 8:06 PMpolite-umbrella-11196
03/12/2023, 10:56 PMenough-painter-7423
03/14/2023, 2:01 AMenough-painter-7423
03/14/2023, 2:09 AM.Id
or .Arn
with .Apply(fun o -> o.Id)
and that's fine for individual Output<Subnet>
or Output<BucketV2>
Then my question is, what's the best way to export both `.Id`s of Output<Tuple<Subnet, BucketV2>>
? Wonder if there's any better way than to write repetitive calls of .Apply(fun tuple -> tuple.Item*.Id)
little-cartoon-10569
03/14/2023, 2:13 AMapply()
. Does this not happen here?
export resourceId = resource.id
It just works.enough-painter-7423
03/14/2023, 3:29 AMlittle-cartoon-10569
03/14/2023, 3:58 AMmap[property] = yourOutput.Apply(o -> o.property)
(lots of reflection, no doubt). Assuming that there's an easy way to map Maps to JSON when exporting, that should be okay.little-cartoon-10569
03/14/2023, 3:59 AMlittle-cartoon-10569
03/14/2023, 4:00 AM