Token subclass that represents values intrinsic to the target document language.
WARNING: this class should not be externally exposed, but is currently visible because of a limitation of jsii (https://github.com/aws/jsii/issues/524).
This class will disappear in a future release and should not be used.
new Intrinsic(value: any)
|creation||The captured stack trace which represents the location in which this token was created.|
The captured stack trace which represents the location in which this token was created.
|resolve(_context)||Produce the Token's value at resolution time.|
|to||Turn this Token into JSON.|
|to||Convert an instance of this Token to a string.|
|protected new||Creates a throwable Error object that contains the token creation stack trace.|
public resolve(_context: IResolveContext): any
Produce the Token's value at resolution time.
public toJSON(): any
Turn this Token into JSON.
Called automatically when JSON.stringify() is called on a Token.
public toString(): string
Convert an instance of this Token to a string.
This method will be called implicitly by language runtimes if the object is embedded into a string. We treat it the same as an explicit stringification.
protected newError(message: string): any
string— Error message.
Creates a throwable Error object that contains the token creation stack trace.