github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/not-internal/instances/instance_key_data.go (about) 1 package instances 2 3 import ( 4 "github.com/zclconf/go-cty/cty" 5 ) 6 7 // RepetitionData represents the values available to identify individual 8 // repetitions of a particular object. 9 // 10 // This corresponds to the each.key, each.value, and count.index symbols in 11 // the configuration language. 12 type RepetitionData struct { 13 // CountIndex is the value for count.index, or cty.NilVal if evaluating 14 // in a context where the "count" argument is not active. 15 // 16 // For correct operation, this should always be of type cty.Number if not 17 // nil. 18 CountIndex cty.Value 19 20 // EachKey and EachValue are the values for each.key and each.value 21 // respectively, or cty.NilVal if evaluating in a context where the 22 // "for_each" argument is not active. These must either both be set 23 // or neither set. 24 // 25 // For correct operation, EachKey must always be either of type cty.String 26 // or cty.Number if not nil. 27 EachKey, EachValue cty.Value 28 }