aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/terraform/addrs/for_each_attr.go
blob: 7a6385035df6b834ebd5c13836b1184d40d969be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package addrs

// ForEachAttr is the address of an attribute referencing the current "for_each" object in
// the interpolation scope, addressed using the "each" keyword, ex. "each.key" and "each.value"
type ForEachAttr struct {
	referenceable
	Name string
}

func (f ForEachAttr) String() string {
	return "each." + f.Name
}