pulumi/sdk/nodejs/runtime
Pat Gavlin 58a75cbbf4
Pull default options from a resource's parent. (#1748)
If a resource's options bag does not specify `protect` or `provider`,
pull a default value from the resource's parent.

In order to allow a parent resource to specify providers for multiple
resource types, component resources now accept an optional map from
package name to provider instance. When a custom resource needs a
default provider from its parent, it checks its parent provider bag for
an entry under its package. If a component resource does not have a
provider bag, its pulls a default from its parent.

These changes also add a `parent` field to `InvokeOptions` s.t. calls to
invoke can use the same behavior as resource creation w.r.t. providers.

Fixes #1735, #1736.
2018-08-10 16:18:21 -07:00
..
closure Strip off the node_modules prefix from our require() calls. (#1729) 2018-08-07 20:27:02 -04:00
config.ts Do not lazy initialize config or settings 2018-08-06 15:53:38 -07:00
debuggable.ts Add license headers 2018-05-22 15:02:47 -07:00
index.ts Actually export function. (#1710) 2018-08-06 15:45:06 -04:00
invoke.ts Pull default options from a resource's parent. (#1748) 2018-08-10 16:18:21 -07:00
resource.ts Pull default options from a resource's parent. (#1748) 2018-08-10 16:18:21 -07:00
rpc.ts Rollback PRs (#1628) 2018-07-11 18:33:53 -07:00
settings.ts Pull default options from a resource's parent. (#1748) 2018-08-10 16:18:21 -07:00
stack.ts Add license headers 2018-05-22 15:02:47 -07:00