Commit Graph

2 Commits

Author SHA1 Message Date
Fraser Waters 344a300a2d Update @types/node version in tests 2023-02-07 14:20:27 +00:00
Justin Van Patten e8bd8e5e1f
Rehydrate provider resources in `Construct` ()
Previously, any provider resource passed to multi-lang components would be instantiated as a `DependencyProviderResource` inside `Construct`, which prevents the component from being able to easily access the provider's state as an instance of of the provider (e.g. `*aws.Provider`).

This change attempts to rehydrate the provider resource in the same way that resource references are rehydrated, if it's been registered, s.t. the specific provider resource type is instantiated with its state. Otherwise falling back to returning `DependencyProviderResource`.
2021-07-23 14:10:06 -07:00