mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-18 18:29:44 -05:00
21 lines
461 B
Go
21 lines
461 B
Go
// Copyright IBM Corp. 2014, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package addrs
|
|
|
|
// CountAttr is the address of an attribute of the "count" object in
|
|
// the interpolation scope, like "count.index".
|
|
type CountAttr struct {
|
|
referenceable
|
|
Name string
|
|
}
|
|
|
|
func (ca CountAttr) String() string {
|
|
return "count." + ca.Name
|
|
}
|
|
|
|
func (ca CountAttr) UniqueKey() UniqueKey {
|
|
return ca // A CountAttr is its own UniqueKey
|
|
}
|
|
|
|
func (ca CountAttr) uniqueKeySigil() {}
|