pulumi/pkg/codegen/hcl2
Pat Gavlin 249140242e
Add support for provider-side preview. (#5443)
These changes add support for provider-side previews of create and
update operations, which allows resource providers to supply output
property values for resources that are being created or updated during a
preview.

If a plugin supports provider-side preview, its create/update methods
will be invoked during previews with the `preview` property set to true.
It is the responsibility of the provider to fill in any output
properties that are known before returning. It is a best practice for
providers to only fill in property values that are guaranteed to be
identical if the preview were instead an update (i.e. only those output
properties whose values can be conclusively determined without
actually performing the create/update operation should be populated).
Providers that support previews must accept unknown values in their
create and update methods.

If a plugin does not support provider-side preview, the inputs to a
create or update operation will be propagated to the outputs as they are
today.

Fixes #4992.
2020-10-09 13:13:55 -07:00
..
model Ensure top-level precedence to avoid flaky tests (#5508) 2020-10-05 19:50:51 +02:00
syntax [codegen/hcl2] Add a template trivia constructor (#5009) 2020-07-14 12:07:44 -07:00
binder.go Add support for provider-side preview. (#5443) 2020-10-09 13:13:55 -07:00
binder_nodes.go [codegen] Add support for caching package schemas. (#4534) 2020-04-30 13:22:24 -07:00
binder_resource.go [codegen] Make schema and package available to HCL2 codegen (#5114) 2020-08-05 17:27:17 -06:00
binder_schema.go Support recursive object types in pkg/codegen model (#5404) 2020-09-18 17:29:21 -07:00
binder_schema_test.go [codegen/{hcl2,schema}] Abstract package loading. (#4975) 2020-07-07 14:45:18 -07:00
binder_test.go [codegen] Add support for caching package schemas. (#4534) 2020-04-30 13:22:24 -07:00
component.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
config.go Codegen: collect imports from function calls. (#4445) 2020-04-21 10:24:42 -07:00
diagnostics.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
functions.go [codegen/*] Add support for explicit secrets. (#4927) 2020-06-30 11:35:24 -07:00
intrinsics.go [Go Program Gen] Improved type handling and invokes (#4749) 2020-06-05 18:52:00 -07:00
invoke.go [codegen/nodejs] Await invokes in async contexts. (#4598) 2020-05-11 10:21:56 -07:00
local.go Codegen: collect imports from function calls. (#4445) 2020-04-21 10:24:42 -07:00
output.go Codegen: collect imports from function calls. (#4445) 2020-04-21 10:24:42 -07:00
program.go Resolve referenced packages for every TF program (#4636) 2020-05-15 19:18:07 +02:00
resource.go [codegen] Make schema and package available to HCL2 codegen (#5114) 2020-08-05 17:27:17 -06:00
rewrite_apply.go [codegen/hcl2] Fix nested apply rewrites (#5013) 2020-07-16 10:26:10 -07:00
rewrite_apply_test.go [codegen/hcl2] Fix nested apply rewrites (#5013) 2020-07-16 10:26:10 -07:00
rewrite_convert.go [codegen/hcl2] Fixes for RewriteConversions. (#4743) 2020-06-02 12:00:35 -07:00
rewrite_convert_test.go [codegen/hcl2] Fixes for RewriteConversions. (#4743) 2020-06-02 12:00:35 -07:00
rewrite_properties.go [codegen/*] Add support for resource options. (#4925) 2020-06-29 16:33:52 -07:00
type.go Various codegen updates. (#4424) 2020-04-16 16:44:34 -07:00
utilities.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00