Is it possible to have an array of resources inside another resource in terraform HCL?

Hi everyone. I am new to terraform, so this may be a silly question, but how can I have an array of resources inside a larger resource?

I am thinking something like this:

resource "metric_policy" "my_policy" {
    policy_rule {
        name = "First rule"
        description = "First description"
        ...
    }
    policy_rule {
        name = "Second rule"
        description = "Second description"
    }
   ...
}

Is this possible to do in terraform?

@keep94 the dynamic block probably works well for that use case in general: