How do I add a route for AWS Network Firewall VPC Endpoint using cdktf


I’m currently trying to add a new route to my route table so traffic can go to my Firewall Endpoint. I’m currently using cdktf with Typescript. I’ve tried something like this:

and got this error: aws_networkfirewall_firewall.sharedNetwork-Inspection-vpc_firewall_2485649D.firewall_status[0].sync_states is set of object with 1 element

That seems like it should work. Can you please provide a code snippet where it is used and the section from cdktf.out/stacks/<stackname>/ which has it?