mirror of https://github.com/pulumi/pulumi.git
![]() When marshaling a resource reference as its ID (i.e. when opts.KeepResources is false, as it will be in the case of downlevel SDKs and resource providers), we must take care to marshal/unmarshal an empty ID as the unknown property value. This includes the following changes to the resource ref APIs: - Bifurcate resource reference creation into two methods: one for creating references to custom resources and one for creating references to component resources. - Store the ID in a resource reference as a PropertyValue s.t. it can be computed. - Add a helper method for retrieving the ID as a string + an indicator of whether or not the reference has an ID. Fixes #5939. |
||
---|---|---|
.. | ||
delete_before_replace_test.go | ||
golang_sdk_test.go | ||
import_test.go | ||
pending_delete_test.go | ||
provider_test.go | ||
pulumi_test.go | ||
refresh_test.go | ||
resource_reference_test.go | ||
target_test.go | ||
test_plan.go |