title: How to use AWS EventBridge with Python Lambda and Boto?
body: <p>I played around with AWS a little bit and ended up at AWS EventBridge. I tried to write a Lambda for testing and understanding, but got an error just at the beginning. </p>
  
  <pre class="lang-py prettyprint-override"><code>import json, boto3
  
  def lambda_handler(event, context):
      client = boto3.client('events')
      response = client.create_event_bus(
      Name='TestEventBus',
      EventSourceName='SomeSoucreEvent'
  )
  
      return {
          'statusCode': 200,
          'body': json.dumps(response)
      }
  </code></pre>
  
  <p>I get the following error message:</p>
  
  <p><em>Response:
  {
    "errorMessage": "'CloudWatchEvents' object has no attribute 'create_event_bus'",
    "errorType": "AttributeError",
    "stackTrace": [
      "  File \"/var/task/lambda_function.py\", line 5, in lambda_handler\n    response = client.create_event_bus(\n",
      "  File \"/var/runtime/botocore/client.py\", line 563, in <strong>getattr</strong>\n    self.<strong>class</strong>.<strong>name</strong>, item)\n"
    ]
  }</em></p>
  
  <p>The version of Boto running in the Lambda is 1.9.42</p>