| 1 |
// Copyright (c) HashiCorp, Inc. |
| 2 |
// SPDX-License-Identifier: MPL-2.0 |
| 3 |
|
| 4 |
package tfconfig |
| 5 |
|
| 6 |
// Variable represents a single variable from a Terraform module. |
| 7 |
type Variable struct { |
| 8 |
Name string `json:"name"` |
| 9 |
Type string `json:"type,omitempty"` |
| 10 |
Description string `json:"description,omitempty"` |
| 11 |
|
| 12 |
// Default is an approximate representation of the default value in |
| 13 |
// the native Go type system. The conversion from the value given in |
| 14 |
// configuration may be slightly lossy. Only values that can be |
| 15 |
// serialized by json.Marshal will be included here. |
| 16 |
Default interface{} `json:"default"` |
| 17 |
Required bool `json:"required"` |
| 18 |
Sensitive bool `json:"sensitive,omitempty"` |
| 19 |
|
| 20 |
Pos SourcePos `json:"pos"` |
| 21 |
} |