on">}</span>
<span class="token punctuation">}</span>
</code></pre></div><p><code>DynamoFiled</code> is used to describe the type of the key. <code>DynamoKey</code> type has several constructors. We use the one with <code>hashKey</code> only, but you could also specify
<code>rangeKey</code> value. <code>TableReference</code> is used to describe a table. In the example above we pass the name of the table and key, but you could also specify optional TTL field and prefix like that:</p> <div class="language-sca