title: How to asynchronously call aws lambda function using Python requests
body: <p>I know how to invoke AWS lambda function asynchronously using boto3 in python.</p>
  <p>Here's the code I'm using:</p>
  <pre class="lang-py prettyprint-override"><code>
  import boto3
  import json
  
  lambda_client = boto3.client('lambda',
                               region_name='ap-northeast-2',
                               aws_access_key_id='XXXXXXXXXX',
                               aws_secret_access_key='XXXXXXXXXXX')
  data = {&quot;data1&quot;:&quot;mydata&quot;}
  
  response = lambda_client.invoke(FunctionName=&quot;my_lambda_function&quot;,
                                  InvocationType=&quot;Event&quot;,         ###for asynchronous purposes
                                  Payload=json.dumps(data)
                                  )
  
  </code></pre>
  <p>but I want to invoke lambda asynchronously using requests instead of invoke method</p>
  <p>ex):</p>
  <pre class="lang-py prettyprint-override"><code>import requests
  param= data = {&quot;data1&quot;:&quot;mydata&quot;}
  url = &quot;https://xxxxx.execute-api.ap-northeast-2.amazonaws.com/my_lambda_function)&quot;
  res = requests.get(url, params=param)
  
  </code></pre>
  <p>Should I implement the code for asynchronous calls myself? Is there a simple asynchronous way to call lambda requests?</p>