title: How to access a partition key in a lambda function?
body: <p>I have used getItem inside my lambda function. </p>
  
  <pre><code>const ddb = new AWS.DynamoDB({apiVersion: "2012-10-08"});
  
  let params = {
              TableName: "Probability",
              Key: {
                  index: randomItemProbability
              }
          };
  let item = ddb.getItem(params);
  //access partition key of item below
  </code></pre>