Is it possible to reference keys other than 0,
If I have one of the key as a TypeList in my resource file, which has element type schema.
Schema: map[string]*schema.Schema{
"server": {
Type: schema.TypeList,
Optional: true,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"zone": {
Type: schema.TypeString,
Optional: true,
ConflictsWith: [x]string{"server.profile"},
},
"profile": {
Type: schema.TypeString,
Optional: true,
ConflictsWith: []string{"server.zone"},
},
"name": {
Type: schema.TypeString,
Optional: true,
},
},
},
For maxItems:1, ConflictsWith: string{“server.0.zone”}, works fine.