You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
Issue details
Currently invoking a function accepts plain arguments and returns a CompleteableFuture. We instead want it to accept builders that overload T and Output<T> in the arguments, and returns an Output<Result> as the result.
For an example illustrating the design consider this snippet from azure template. It is now possible to pass Output values to invokes directly:
When Java SDKs for providers such as azure-native update to the version of codegen implementing this feature, it will be a breaking change. To upgrade your code, you have two options:
rewrite the code to use the new form; note for example that StorageFunctions.listStorageAccountKeys returns an Output instead of a CompletableFuture, and ListStorageAccountKeysArgs now accepts Output values.
rewrite the code that uses the old form; it is now renamed with a Plain suffix. So for our example, you could use StorageFunctions.listStorageAccountKeysPlain that returns a CompletableFuture as before.
TBD @dixler pre-plan how this looks like so plain Function calls don't grab names we want to use for Output versioned calls that we want to make "easier" or "more default".
Hello!
Issue details
Currently invoking a function accepts plain arguments and returns a CompleteableFuture. We instead want it to accept builders that overload T and
Output<T>
in the arguments, and returns anOutput<Result>
as the result.For an example illustrating the design consider this snippet from azure template. It is now possible to pass Output values to invokes directly:
Design
Before the change one had to manually await the Output args and project the resulting CompletableFuture to an Output.
Breaking Changes
When Java SDKs for providers such as azure-native update to the version of codegen implementing this feature, it will be a breaking change. To upgrade your code, you have two options:
rewrite the code to use the new form; note for example that StorageFunctions.listStorageAccountKeys returns an Output instead of a CompletableFuture, and ListStorageAccountKeysArgs now accepts Output values.
rewrite the code that uses the old form; it is now renamed with a Plain suffix. So for our example, you could use
StorageFunctions.listStorageAccountKeysPlain
that returns a CompletableFuture as before.Follow up
Affected area/feature
The text was updated successfully, but these errors were encountered: