github.com/opentofu/opentofu@v1.7.1/internal/states/output_value.go (about)

     1  // Copyright (c) The OpenTofu Authors
     2  // SPDX-License-Identifier: MPL-2.0
     3  // Copyright (c) 2023 HashiCorp, Inc.
     4  // SPDX-License-Identifier: MPL-2.0
     5  
     6  package states
     7  
     8  import (
     9  	"github.com/opentofu/opentofu/internal/addrs"
    10  	"github.com/zclconf/go-cty/cty"
    11  )
    12  
    13  // OutputValue represents the state of a particular output value.
    14  //
    15  // It is not valid to mutate an OutputValue object once it has been created.
    16  // Instead, create an entirely new OutputValue to replace the previous one.
    17  type OutputValue struct {
    18  	Addr      addrs.AbsOutputValue
    19  	Value     cty.Value
    20  	Sensitive bool
    21  }