title: how to put an Item in aws DynamoDb using aws Lambda with python
body: <p>Using python in AWS Lambda, how do I put/get an item from a DynamoDB table?</p>
  
  <p>In Node.js this would be something like:</p>
  
  <pre><code>dynamodb.getItem({
      "Key": {"fruitName" : 'banana'},
      "TableName": "fruitSalad"
  }, function(err, data) {
      if (err) {
          context.fail('Incorrect username or password');
      } else {
          context.succeed('yay it works');
      }
  });
  </code></pre>
  
  <p>All I need is the python equivalent.</p>