pulumi/pkg/resource/stack
Pat Gavlin 2f0dba23ab
Fix resource-ref-as-ID marshaling. (#6125)
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.
2021-01-15 16:06:57 -08:00
..
testdata Add a version property to checkpoints 2018-03-10 13:03:05 -08:00
checkpoint.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
checkpoint_test.go Add license headers 2018-05-22 15:02:47 -07:00
deployment.go Fix resource-ref-as-ID marshaling. (#6125) 2021-01-15 16:06:57 -08:00
deployment_test.go Allow pulumi stack export to decrypt secrets (#4046) 2020-05-11 19:16:30 +01:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
secrets.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
secrets_test.go Allow pulumi stack export to decrypt secrets (#4046) 2020-05-11 19:16:30 +01:00