2018-03-31 04:58:57 +02:00
|
|
|
package addrs
|
|
|
|
|
|
|
|
// TerraformAttr is the address of an attribute of the "terraform" object in
|
|
|
|
// the interpolation scope, like "terraform.workspace".
|
|
|
|
type TerraformAttr struct {
|
|
|
|
referenceable
|
|
|
|
Name string
|
|
|
|
}
|
2018-04-04 03:03:47 +02:00
|
|
|
|
|
|
|
func (ta TerraformAttr) String() string {
|
|
|
|
return "terraform." + ta.Name
|
|
|
|
}
|
2021-07-11 00:18:19 +02:00
|
|
|
|
|
|
|
func (ta TerraformAttr) UniqueKey() UniqueKey {
|
|
|
|
return ta // A TerraformAttr is its own UniqueKey
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ta TerraformAttr) uniqueKeySigil() {}
|