You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/addrs/count_attr.go

22 lines
460 B

// Copyright (c) HashiCorp, Inc.
// 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() {}