Setting State for types.Map

Have you checked out the hashicups-pf provider?

This blob shows how to populate API data into some of the framework types.

If you’re using a types.Map, you do pretty much the same thing, but need to spell out the type of the elements within the map:

thing := types.Map{
    ElemType: types.StringType,
    Elems: map[string]attr.Value{
			"foo": types.String{Value: "this_is_foo"},
			"bar": types.String{Value: "this_is_bar"},
		},
}

types.Object are one step more complicated because rather than the simple ElemType field, you need to specify a map which details, by name, the type of each attribute within the object.