title: How to create DynamoDB table with list and map
body: <p>I'm new to DynamoDB. I am trying to create DynamoDB with SAM project. I know I can only use &quot;S&quot;, &quot;N&quot;, &quot;B&quot; for AttributeType but I want to use like the below.</p>
  <pre><code>{
    &quot;TableName&quot;: &quot;xyz&quot;,
    &quot;KeySchema&quot;: [
      {
        &quot;AttributeName&quot;: &quot;uid&quot;,
        &quot;KeyType&quot;: &quot;HASH&quot;
      }
    ],
    &quot;AttributeDefinitions&quot;: [
      {
        &quot;AttributeName&quot;: &quot;uid&quot;,
        &quot;AttributeType&quot;: &quot;S&quot;
      },
      {
        &quot;AttributeName&quot;: &quot;email&quot;,
        &quot;AttributeType&quot;: &quot;S&quot;
      },
      {
        &quot;AttributeName&quot;: &quot;postal_code&quot;,
        &quot;AttributeType&quot;: &quot;S&quot;
      },
      {
        &quot;AttributeName&quot;: &quot;bookmark&quot;,
        &quot;AttributeType&quot;: &quot;L&quot; ← (I want to use List)
      },
      {
        &quot;AttributeName&quot;: &quot;children&quot;,
        &quot;AttributeType&quot;: &quot;M&quot; ← (I want to use Map)
      }
    ],
    &quot;ProvisionedThroughput&quot;: {
      &quot;ReadCapacityUnits&quot;: 2,
      &quot;WriteCapacityUnits&quot;: 2
    }
  </code></pre>
  <p>It is my table.json and I want to create the table with this aws command.</p>
  <pre><code>aws dynamodb --profile local --endpoint-url http://localhost:8000 create-table --cli-input-json file://./testdata/table.json
  </code></pre>
  <p>How do you have list data and map data with DynamoDB?</p>