Azure_application_gateway rewrite rule with block condition... then

how to make this work on the terraform configuration yml file?
in the document of terraform provider azure.there is just only a simple example.some complex scenarios are not covered at all.

image