3 // NodePlanDestroyableResource represents a resource that is "applyable":
4 // it is ready to be applied and is represented by a diff.
5 type NodePlanDestroyableResource struct {
10 func (n *NodePlanDestroyableResource) DestroyAddr() *ResourceAddress {
15 func (n *NodePlanDestroyableResource) EvalTree() EvalNode {
16 addr := n.NodeAbstractResource.Addr
18 // stateId is the ID to put into the state
19 stateId := addr.stateId()
21 // Build the instance info. More of this will be populated during eval
22 info := &InstanceInfo{
27 // Declare a bunch of variables that are used for state during
28 // evaluation. Most of this are written to by-address below.
29 var diff *InstanceDiff
30 var state *InstanceState
43 &EvalCheckPreventDestroy{