Intrinsic

class aws_cdk.core.Intrinsic(value)

Bases: object

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 :stability: experimental

__init__(value)
Parameters

value (Any) –

stability :stability: experimental

Return type

None

Methods

resolve(_context)

Produce the Token’s value at resolution time.

Parameters

_context (IResolveContext) –

stability :stability: experimental

Return type

Any

to_json()

Turn this Token into JSON.

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

stability :stability: experimental

Return type

Any

to_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.

stability :stability: experimental

Return type

str

Attributes

creation_stack

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

stability :stability: experimental

Return type

List[str]