Tags and tags_all

With Aws provider version 3.38 we have tags _ all to check for all the tags rather than just tags(https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/resource-tagging#propagating-tags-to-all-resources. For policy to work for the both the versions I am trying to change the policy . In Json we ususally can if JSON.has is there any equivalent command in HCL Is this a correct way or do we have any other option.
if rc.change.after.tags_all {
check policy for tags_all
else
check policy for tags
}

Hi @swetharamk,

I would recommend creating two rules for each scenario. I have created an example policy that you can reference.