title: No Payload property on AWS Lambda invoke CLI response
body: <p>I'm making a call to the <a href="http://docs.aws.amazon.com/cli/latest/reference/lambda/invoke.html" rel="nofollow noreferrer">AWS Lambda CLI to invoke</a> my function. I want to get the function response (Payload) as part of my return object so I'm passing <code>--invocation-type RequestResponse</code>. With that, I'm still only getting the function output in my output file (which I actually don't care about). I want it as part of the object returned from this CLI call but there I only get the LogResult and the StatusCode.</p>
  
  <pre><code>{
      "LogResult": "encoded blah blah blah", 
      "StatusCode": 200
  }
  </code></pre>
  
  <p>Am I making a typo in my command or am I missing something? How can I get the function output (Payload) as part of the object returned from this CLI call? </p>
  
  <pre><code>aws lambda invoke --function-name myFunction --invocation-type RequestResponse --log-type Tail --payload {} --region us-east-1 testoutput.txt
  </code></pre>