pulumi / pulumi-java

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

Documentation reports that `Output-based functions aren't available in Java yet` #1264

Open kylepl opened 1 year ago

kylepl commented 1 year ago

What happened?

Documentation says Output-based functions aren't available in Java yet, even though they are being generated now.

While this points to a specific package, since I assume the examples are generated, perhaps there needs to be a centralized fix. Not sure what the flow is.

Example

When you view https://www.pulumi.com/registry/packages/digitalocean/api-docs/getdomain/, for Java, it says // Output-based functions aren't available in Java yet, despite the fact if you look at the JAR, it has:

public static Output<GetDomainResult> getDomain(GetDomainArgs args, InvokeOptions options) {
    return Deployment.getInstance().invoke("digitalocean:index/getDomain:getDomain", TypeShape.of(GetDomainResult.class), args, Utilities.withVersion(options));
}

public static CompletableFuture<GetDomainResult> getDomainPlain(GetDomainPlainArgs args, InvokeOptions options) {
    return Deployment.getInstance().invokeAsync("digitalocean:index/getDomain:getDomain", TypeShape.of(GetDomainResult.class), args, Utilities.withVersion(options));
}

Output of pulumi about

Not applicable.

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

YanishR commented 4 months ago

Hello, What is the status of this? Will it be addressed soon? Is there any work-around suggested?