Built-in resolver that handles duck-typed IResolvable objects.
Any object with a resolve(context: ResolveContext): any method is treated as a token,
regardless of its class hierarchy. This allows provider packages to define their own
token types (e.g. SecretRef, ResourceAttribute) without extending a base class from
@cdk-x/core.
The resolver builds a ResolveContext (the IResolvable-facing interface) and passes it
to the object's resolve() method. The ResolveContext.resolve() function delegates back
to the full ResolverPipeline so nested values are recursively resolved.
Note: Lazy instances also have a produce() method but NOT a resolve() method, so
they are handled exclusively by LazyResolver and never reach this resolver.
Built-in resolver that handles duck-typed
IResolvableobjects.Any object with a
resolve(context: ResolveContext): anymethod is treated as a token, regardless of its class hierarchy. This allows provider packages to define their own token types (e.g.SecretRef,ResourceAttribute) without extending a base class from@cdk-x/core.The resolver builds a
ResolveContext(the IResolvable-facing interface) and passes it to the object'sresolve()method. TheResolveContext.resolve()function delegates back to the fullResolverPipelineso nested values are recursively resolved.Note:
Lazyinstances also have aproduce()method but NOT aresolve()method, so they are handled exclusively byLazyResolverand never reach this resolver.