4

Is it possible to set a payload on a Lambda Invoke request for the AWS C++ SDK? When looking at the docs it appears as though this may not be possible.

johnnyodonnell
  • 1,838
  • 3
  • 16
  • 34

1 Answers1

5

Yes it is possible.

The InvokeRequest class does not directly provide a method for setting the payload. However, it's super class Aws::AmazonWebServiceRequest provides a method SetBody which can be used for setting the payload.

AWS has provided an example of how this is done here

johnnyodonnell
  • 1,838
  • 3
  • 16
  • 34