pulumi/pkg/codegen/internal/test/testdata/aws-webserver-pp
Aaron Friel 51ce3f24a7 [codegen/go] Improve optional params in invoke
As described in #8821, docs generated for helper functions can be incorrect because optional arguments to parameter objects are not correctly handled.

Previously, code would be generated like so:

```go
    policyDocument, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
      Statements: []iam.GetPolicyDocumentStatement{
        iam.GetPolicyDocumentStatement{
          Sid: "1",
          //...
```

However "Sid" is of type `*string`.

This four helper conversion functions, to handle the primitive types we lower from, and modifies codegen to recursively apply these functions inside of an invoke call.

In the new code generation, the above is instead rendered as:

```go
    policyDocument, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
      Statements: []iam.GetPolicyDocumentStatement{
        iam.GetPolicyDocumentStatement{
          Sid: pulumi.StringRef("1"),
          //...
```
2022-02-01 09:23:45 -08:00
..
dotnet iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
go [codegen/go] Improve optional params in invoke 2022-02-01 09:23:45 -08:00
nodejs iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
python iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
aws-webserver.pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00