title: How to define "Map" AttributeType in dynamo db?
body: <p>I am new in <strong>aws dynamo db</strong>. I <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html" rel="nofollow noreferrer">have read</a> that we can set <code>M</code> type of attributeValue in schema of dynamo db.</p>
  <p>But when I execute the code below</p>
  <pre><code>var params = {
      TableName: 'product',
      KeySchema: [
          {
              AttributeName: 'productType',
              KeyType: 'HASH'
          },
           {
              AttributeName: 'manufacturer',
              KeyType: 'SORT'
          }
      ],
      AttributeDefinitions: [
          {
              AttributeName: 'productType',
              AttributeType: 'S'
          },
           {
              AttributeName: 'manufacturer',
              AttributeType: 'M'
          }
      ],
       ProvisionedThroughput: {
          ReadCapacityUnits: 1, 
          WriteCapacityUnits: 1, 
      }
  
  };
  dynamodb.createTable(params, function(err, data) {
     console.log(err, data);
  
  });
  </code></pre>
  <p>It keeps throwing error  <code>{&quot;message&quot;:&quot;Member must satisfy enum value set: [B, N, S]&quot;,&quot;code&quot;:&quot;ValidationException&quot;,&quot;time&quot;:&quot;2018-02-07T11:20:12.930Z&quot;,&quot;statusCode&quot;:400,&quot;retryable&quot;:false}</code></p>
  <p>But the above link says that there is an attribute of type Map available. Can someone explain me how can I achieve Map in dynamo db.</p>