github.com/pulumi/terraform@v1.4.0/pkg/addrs/count_attr.go (about) 1 package addrs 2 3 // CountAttr is the address of an attribute of the "count" object in 4 // the interpolation scope, like "count.index". 5 type CountAttr struct { 6 referenceable 7 Name string 8 } 9 10 func (ca CountAttr) String() string { 11 return "count." + ca.Name 12 } 13 14 func (ca CountAttr) UniqueKey() UniqueKey { 15 return ca // A CountAttr is its own UniqueKey 16 } 17 18 func (ca CountAttr) uniqueKeySigil() {}