title: Getting AWS Lambda response when using boto3 invoke()
body: <p>Im currently writing a python script that interacts with some AWS lambda functions. In one of the functions, my response contains a list which I need in my script.</p>
  
  <p>Problem is that when I use the <code>invoke()</code> function, the response is a json which contains request information.</p>
  
  <pre><code>response = aws_lambdaClient.invoke(FunctionName = 'functionName', Payload = payload)
  </code></pre>
  
  <p>The function that im using has this as a return</p>
  
  <pre><code>return {'names': aList, 'status': 'Success!'}
  </code></pre>
  
  <p>If I print out the response, I get this:</p>
  
  <pre><code>{'ResponseMetadata': {'RequestId': 'xxxxxxxxx', 'HTTPStatusCode': 200, 'HTTPHeaders': {'date': 'Thu, 07 Nov 2019 14:28:25 GMT', 'content-type': 'application/json', 'content-length': '51', 'connection': 'keep-alive', 'x-amzn-requestid': 'xxxxxxxxxx', 'x-amzn-remapped-content-length': '0', 'x-amz-executed-version': '$LATEST', 'x-amzn-trace-id': 'root=xxxxxxxxx;sampled=0'}, 'RetryAttempts': 0}, 'StatusCode': 200, 'ExecutedVersion': '$LATEST', 'Payload': &lt;botocore.response.StreamingBody object at 0x0000023D15716048&gt;}
  </code></pre>
  
  <p>And id like to get</p>
  
  <pre><code>{'names': aList, 'status': 'Success!'}
  </code></pre>
  
  <p>Any idea on how can I achieve this? Or should I find another way of getting the data (Maybe putting the list i need in an s3 bucket and then getting it from there).</p>