Keeps a collection of variables and variable files.
Type | Name and description |
---|---|
java.util.List<Action<VariablesSpec>> |
additionalVariables Additional variables from other sources. |
java.util.List<java.lang.Object> |
files List of filenames or relative paths to a terraform source set. |
java.util.Map<java.lang.String, java.lang.Object> |
vars Terraform variables. |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
clear() |
|
java.util.List<java.lang.String> |
commandLineArgs(java.nio.file.Path root) Returns the command-line representation. |
|
void |
copyTo(VarsFilesPair target) Copy these settings to another instance. |
|
java.util.Map<java.lang.String, java.lang.String> |
getEscapedVars(boolean escapeInnerLevel = false) Evaluate all provided and local variables and convert them to Terraform-compliant strings, ready to be passed to command-line. |
|
java.util.Set<java.lang.String> |
getFileNames() List of file names containing Terraform variables. |
|
java.util.List<java.lang.String> |
getVarsInTfFormat() Gets all variables in a Terraform file format. |
|
java.lang.String |
toString() Returns a string representation of the object. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Additional variables from other sources.
List of filenames or relative paths to a terraform source set.
Terraform variables. Key is the name of the variable. Value can be a map, collection, boolean, number or anything convertible to a string.
Returns the command-line representation.
root
- Root path for resolving file paths.Copy these settings to another instance.
target
- Target instanceEvaluate all provided and local variables and convert them to Terraform-compliant strings, ready to be passed to command-line. Provided variables will be evaluated first, so that any local definitions can override them.
Calling this will resolve all lazy-evaluated entries.
escapeInnerLevel
- Whether to escape inner level string. Default is false
List of file names containing Terraform variables. Filenames can contain relative paths.
Gets all variables in a Terraform file format.
Returns a string representation of the object.