Simple proxy implementation that will require resolution at runtime (enables lazy loading). Unlike dynamic proxy that can create target on the fly, this proxy just a place-holder that supplies the function that can be used to resolve the target. Since most CDK constructs are not idempotent (meaning you can not call a create function twice, the second will fail) this design choice was the simplest to support declarative resources. Customers can clone the supplied JSON structure with cloneDeep and replace proxies with the actual targets as part of that process.

Type Parameters

  • T extends object

Implements

  • ProxyHandler<T>

Constructors

Methods

Constructors

Methods

  • A trap for getting a property value.

    Parameters

    • _: T
    • key: PropertyKey

    Returns any