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

private void RegisterPostProcessor(IPostProcessor PostProcessor)
Use this postprocessor after the entire token structure has been resolved.

PostProcessorRequired


Resolve

private object Resolve(object X)
Resolve an inner object.

XRequired

  • Type: object

Properties

NameTypeDescription
PreparingboolTrue when we are still preparing, false if we’re rendering the final output.
ScopeConstructs.IConstructThe scope from which resolution has been initiated.
IgnoreEscapesboolTrue when ${} should not be parsed, and treated as literals.
IteratorContextstringTerraformIterators 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.
SuppressBracesboolTrue when ${} should be ommitted (because already inside them), false otherwise.
WarnEscapesboolTrue when ${} should not be included in the string to be resolved, outputs a warning.

PreparingRequired

public bool Preparing { get; }
  • Type: bool
True when we are still preparing, false if we’re rendering the final output.

ScopeRequired

public IConstruct Scope { get; }
  • Type: Constructs.IConstruct
The scope from which resolution has been initiated.

IgnoreEscapesOptional

public bool IgnoreEscapes { get; set; }
  • Type: bool
True when ${} should not be parsed, and treated as literals.

IteratorContextOptional

public string IteratorContext { get; set; }
  • Type: 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 bool SuppressBraces { get; set; }
  • Type: bool
True when ${} should be ommitted (because already inside them), false otherwise.

WarnEscapesOptional

public bool WarnEscapes { get; set; }
  • Type: bool
True when ${} should not be included in the string to be resolved, outputs a warning. Default: false