mirror of https://github.com/pulumi/pulumi.git
![]() 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"), //... ``` |
||
---|---|---|
.. | ||
dotnet | ||
go | ||
nodejs | ||
python | ||
aws-fargate.pp |