@cdk-x/core
    Preparing search index...

    Class ImplicitTokenResolver

    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.

    Implements

    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • pipelineResolve: (
            key: string[],
            value: unknown,
            providerResource: object,
            provider: string,
        ) => unknown

        A callback to the pipeline's resolve function. Injected at construction time to avoid a circular module dependency.

      Returns ImplicitTokenResolver

    Methods