mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
e9eb8e04cc
We need all module instance outputs to build the objects for evaluation, but there is no need to copy all the resource instances along with that. This allows us to only return the output states, with enough information to connect them with their module instances.
17 lines
420 B
Go
17 lines
420 B
Go
package states
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform/addrs"
|
|
"github.com/zclconf/go-cty/cty"
|
|
)
|
|
|
|
// OutputValue represents the state of a particular output value.
|
|
//
|
|
// It is not valid to mutate an OutputValue object once it has been created.
|
|
// Instead, create an entirely new OutputValue to replace the previous one.
|
|
type OutputValue struct {
|
|
Addr addrs.AbsOutputValue
|
|
Value cty.Value
|
|
Sensitive bool
|
|
}
|