IResolvable

class aws_cdk.core.IResolvable(*args, **kwargs)

Bases: typing_extensions.Protocol

Interface for values that can be resolvable later.

Tokens are special objects that participate in synthesis.

__init__(*args, **kwargs)

Methods

resolve(context)

Produce the Token’s value at resolution time.

Parameters

context (IResolveContext) –

Return type

Any

to_string()

Return a string representation of this resolvable object.

Returns a reversible string representation.

Return type

str

Attributes

creation_stack

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.

Return type

List[str]