title: Terraform list object in Golang
body: <p>I am trying to represent Terraform list of <code>objects</code> in Go i.e.</p>
  
  <pre><code>variable "map_roles" {
    description = "Additional IAM roles to add to the aws-auth configmap."
    type = list(object({
      rolearn  = string
      username = string
      groups   = list(string)
    }))
  </code></pre>
  
  <p>Are <code>rolearn</code> and others basic types or composite ones e.g. a map? And so is map_roles just a struct of strings and slice of string (list), or is it a struct of maps?</p>