Skip to main content

Initializers

import cdktn

cdktn.LazyBase()
NameTypeDescription

Methods

NameDescription
add_post_processorNo description.
resolveProduce the Token’s value at resolution time.
to_jso_nTurn this Token into JSON.
to_stringReturn a string representation of this resolvable object.

add_post_processor

def add_post_processor(
  post_processor: IPostProcessor
) -> None

post_processorRequired


resolve

def resolve(
  context: IResolveContext
) -> typing.Any
Produce the Token’s value at resolution time.

contextRequired


to_jso_n

def to_jso_n() -> typing.Any
Turn this Token into JSON. Called automatically when JSON.stringify() is called on a Token.

to_string

def to_string() -> str
Return a string representation of this resolvable object. Returns a reversible string representation.

Properties

NameTypeDescription
creation_stacktyping.List[str]The creation stack of this resolvable which will be appended to errors thrown during resolution.

creation_stackRequired

creation_stack: typing.List[str]
  • Type: typing.List[str]
The creation stack of this resolvable which will be appended to errors thrown during resolution. If this returns an empty array the stack will not be attached.