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

func RegisterPostProcessor(postProcessor IPostProcessor)
Use this postprocessor after the entire token structure has been resolved.

postProcessorRequired


Resolve

func Resolve(x interface{}) interface{}
Resolve an inner object.

xRequired

  • Type: interface{}

Properties

NameTypeDescription
Preparing*boolTrue when we are still preparing, false if we’re rendering the final output.
Scopegithub.com/aws/constructs-go/constructs/v10.IConstructThe scope from which resolution has been initiated.
IgnoreEscapes*boolTrue when ${} should not be parsed, and treated as literals.
IteratorContext*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.
SuppressBraces*boolTrue when ${} should be ommitted (because already inside them), false otherwise.
WarnEscapes*boolTrue when ${} should not be included in the string to be resolved, outputs a warning.

PreparingRequired

func Preparing() *bool
  • Type: *bool
True when we are still preparing, false if we’re rendering the final output.

ScopeRequired

func Scope() IConstruct
  • Type: github.com/aws/constructs-go/constructs/v10.IConstruct
The scope from which resolution has been initiated.

IgnoreEscapesOptional

func IgnoreEscapes() *bool
  • Type: *bool
True when ${} should not be parsed, and treated as literals.

IteratorContextOptional

func IteratorContext() *string
  • 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

func SuppressBraces() *bool
  • Type: *bool
True when ${} should be ommitted (because already inside them), false otherwise.

WarnEscapesOptional

func WarnEscapes() *bool
  • Type: *bool
True when ${} should not be included in the string to be resolved, outputs a warning. Default: false