mirror of https://github.com/pulumi/pulumi.git
3d8158b744
### Description This PR adds support for specifying invokes options in PCL and extends program-gen in C#, TypeScript, Python and Go to support generating the options correctly from PCL. Previously the options parameter from the invoke was expected to be a string which is incorrect, it must be an object with fields `provider`, `parent`, `version` and `pluginDownloadUrl`. Soon we will add `dependsOn` to these options so it will be nice to have the foundation for it. For Go, TypeScript and Python added a conformance test `l2-invoke-options` which exercise the usage of these options although runtime-wise the results of the invoke are the same. Since we don't have conformance tests for .NET yet, I've added a simple program-gen test for C# that has invoke options to make sure the generated program compiles. |
||
---|---|---|
.. | ||
README.md | ||
binder.go | ||
binder_component.go | ||
binder_nodes.go | ||
binder_resource.go | ||
binder_resource_test.go | ||
binder_schema.go | ||
binder_schema_test.go | ||
binder_test.go | ||
component.go | ||
config.go | ||
diagnostics.go | ||
functions.go | ||
functions_test.go | ||
intrinsics.go | ||
invoke.go | ||
local.go | ||
output.go | ||
program.go | ||
resource.go | ||
rewrite_apply.go | ||
rewrite_apply_test.go | ||
rewrite_convert.go | ||
rewrite_convert_test.go | ||
rewrite_properties.go | ||
type.go | ||
utilities.go | ||
utilities_test.go |
README.md
(pcl)=
Pulumi Configuration Language (PCL)
Pulumi Configuration Language (PCL) is an internal representation of Pulumi programs which supports all core concepts of the Pulumi programming model in a minimal form. Although not exposed directly to users today, this intermediate representation is used to support a variety of program conversion tasks, from and to various supported Pulumi languages.