AWS Condifg: how to avoid YAML in conformation pack

Hello,
how can i avoid using yaml to add and configure rules in aws config conformation pack resource?

It is my understanding that packs can only take yaml and as such i can’t refer to the rules in normal tf code…
I hope i’m mistaken…

Thank you.
AZ

ref:
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/config_remediation_configuration
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/config_organization_conformance_pack#attribute-reference