Skip to main content
Current resolution context for tokens.

Methods

NameDescription
registerPostProcessorUse this postprocessor after the entire token structure has been resolved.
resolveResolve an inner object.

registerPostProcessor

public void registerPostProcessor(IPostProcessor postProcessor)
Use this postprocessor after the entire token structure has been resolved.

postProcessorRequired


resolve

public java.lang.Object resolve(java.lang.Object x)
Resolve an inner object.

xRequired

  • Type: java.lang.Object

Properties

NameTypeDescription
preparingjava.lang.BooleanTrue when we are still preparing, false if we’re rendering the final output.
scopesoftware.constructs.IConstructThe scope from which resolution has been initiated.
ignoreEscapesjava.lang.BooleanTrue when ${} should not be parsed, and treated as literals.
iteratorContextjava.lang.StringTerraformIterators can be passed for block attributes and normal list attributes both require different handling when the iterable variable is accessed e.g. a dynamic block needs each.key while a for expression just needs key.
suppressBracesjava.lang.BooleanTrue when ${} should be ommitted (because already inside them), false otherwise.
warnEscapesjava.lang.BooleanTrue when ${} should not be included in the string to be resolved, outputs a warning.

preparingRequired

public java.lang.Boolean getPreparing();
  • Type: java.lang.Boolean
True when we are still preparing, false if we’re rendering the final output.

scopeRequired

public IConstruct getScope();
  • Type: software.constructs.IConstruct
The scope from which resolution has been initiated.

ignoreEscapesOptional

public java.lang.Boolean getIgnoreEscapes();
  • Type: java.lang.Boolean
True when ${} should not be parsed, and treated as literals.

iteratorContextOptional

public java.lang.String getIteratorContext();
  • Type: java.lang.String
TerraformIterators can be passed for block attributes and normal list attributes both require different handling when the iterable variable is accessed e.g. a dynamic block needs each.key while a for expression just needs key.

suppressBracesOptional

public java.lang.Boolean getSuppressBraces();
  • Type: java.lang.Boolean
True when ${} should be ommitted (because already inside them), false otherwise.

warnEscapesOptional

public java.lang.Boolean getWarnEscapes();
  • Type: java.lang.Boolean
True when ${} should not be included in the string to be resolved, outputs a warning. Default: false