pulumi / pulumi-java

Java support for Pulumi
Apache License 2.0
69 stars 21 forks source link

Example S3 code is invalid. #1420

Open Myslawek opened 3 weeks ago

Myslawek commented 3 weeks ago

File: themes/default/content/registry/packages/aws/api-docs/s3/bucketpolicy/_index.md

The example provided for S3 bucket policy in Java is invalid. GetPolicyDocumentStatementArgs does not accept a List of Output<String> (List<Output<String>>) as the example implies. Instead it accepts Output<List<String>>. Current solution cannot be used at all, since it won't compile.

.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult) is redundant. It does not mutate or does anything to the value itself.

interurban commented 2 weeks ago

Talked with Matt and it looks like this one would most likely be a converter bug or maybe a codegen bug. Adding it to the right triage team.

interurban commented 2 weeks ago

Thank you @Myslawek . I imagine your not blocked by this, but if you need any help let me know. I've routed this to the team to see why this particular example didn't convert properly.

Frassle commented 2 weeks ago

This looks like a codegen bug to me, moving to java repo.