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

hello,

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:
this.firewall.firewallStatus.get(0).syncStates.get(0).attachment.get(0).endpointId

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>/cdk.tf.json which has it?