Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Last active July 22, 2020 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save recursivecodes/7dfdaae05ad942af42665ba44a9e913a to your computer and use it in GitHub Desktop.
Save recursivecodes/7dfdaae05ad942af42665ba44a9e913a to your computer and use it in GitHub Desktop.
InvokeAsync.java
FunctionsInvokeAsyncClient functionsInvokeAsyncClient = FunctionsInvokeAsyncClient.builder()       
.endpoint(invokeEndpoint)       
.build(provider);
InvokeFunctionRequest asyncRequest = InvokeFunctionRequest.builder()       
.functionId(functionId)       
.invokeFunctionBody(StreamUtils.createByteArrayInputStream(asyncPayload.getBytes()))       
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment