Intrinsic

class aws_cdk.core.Intrinsic(value, *, stack_trace=None)

Bases: object

(experimental) 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.

Stability

experimental

Parameters
  • value (Any) –

  • stack_trace (Optional[bool]) – (experimental) Capture the stack trace of where this token is created. Default: true

Stability

experimental

Methods

resolve(_context)

(experimental) Produce the Token’s value at resolution time.

Parameters

_context (IResolveContext) –

Stability

experimental

Return type

Any

to_json()

(experimental) Turn this Token into JSON.

Called automatically when JSON.stringify() is called on a Token.

Stability

experimental

Return type

Any

to_string()

(experimental) 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.

Stability

experimental

Return type

str

Attributes

creation_stack

(experimental) The captured stack trace which represents the location in which this token was created.

Stability

experimental

Return type

List[str]