title: Float for input parameter for lambda function in amazon
body: <p>I looked at documentation but couldn't find an answer for that. I am trying to add &quot;rating&quot; of type &quot;float&quot; inside custom lambda function. All I see for items are written as {S: date.toISOString()}. Here &quot;S&quot; stands for I think string, but what if I want it to be a float?</p>
  <pre><code>var aws = require('aws-sdk');
  var ddb = new aws.DynamoDB();
  
  exports.handler = async (event, context) =&gt; {
      
      let date = new Date();
  
      if (event.request.userAttributes.sub) {
  
          let params = {
              Item: {
                  'id': {S: event.request.userAttributes.sub},
                  '__typename': {S: 'User'},
                  'name': {S: event.request.userAttributes.name},
                  'email': {S: event.request.userAttributes.email},
                  'createdAt': {S: date.toISOString()},
                  'updatedAt': {S: date.toISOString()},
                  'rating': {F: 0}    // is this format true? Or what to do if not?
              },
              TableName: process.env.API_{YOUR_APP_NAME}_USERTABLE_NAME
          };
  </code></pre>
  <p>There are so little documentation for this custom lambda function. Or maybe I couldn't find where the details are explained.</p>