| 1 |
.. _ref_custom_dynamodb: |
| 2 |
|
| 3 |
================================ |
| 4 |
DynamoDB customization reference |
| 5 |
================================ |
| 6 |
|
| 7 |
.. _ref_valid_dynamodb_types: |
| 8 |
|
| 9 |
Valid DynamoDB types |
| 10 |
-------------------- |
| 11 |
|
| 12 |
These are the valid item types to use with Boto3 Table Resource (:py:class:`dynamodb.Table`) and DynamoDB: |
| 13 |
|
| 14 |
+----------------------------------------------+-----------------------------+ |
| 15 |
| Python Type | DynamoDB Type | |
| 16 |
+==============================================+=============================+ |
| 17 |
| string | String (S) | |
| 18 |
+----------------------------------------------+-----------------------------+ |
| 19 |
| integer | Number (N) | |
| 20 |
+----------------------------------------------+-----------------------------+ |
| 21 |
| :py:class:`decimal.Decimal` | Number (N) | |
| 22 |
+----------------------------------------------+-----------------------------+ |
| 23 |
| :py:class:`boto3.dynamodb.types.Binary` | Binary (B) | |
| 24 |
+----------------------------------------------+-----------------------------+ |
| 25 |
| boolean | Boolean (BOOL) | |
| 26 |
+----------------------------------------------+-----------------------------+ |
| 27 |
| ``None`` | Null (NULL) | |
| 28 |
+----------------------------------------------+-----------------------------+ |
| 29 |
| string set | String Set (SS) | |
| 30 |
+----------------------------------------------+-----------------------------+ |
| 31 |
| integer set | Number Set (NS) | |
| 32 |
+----------------------------------------------+-----------------------------+ |
| 33 |
| :py:class:`decimal.Decimal` set | Number Set (NS) | |
| 34 |
+----------------------------------------------+-----------------------------+ |
| 35 |
| :py:class:`boto3.dynamodb.types.Binary` set | Binary Set (BS) | |
| 36 |
+----------------------------------------------+-----------------------------+ |
| 37 |
| list | List (L) | |
| 38 |
+----------------------------------------------+-----------------------------+ |
| 39 |
| dict | Map (M) | |
| 40 |
+----------------------------------------------+-----------------------------+ |
| 41 |
|
| 42 |
|
| 43 |
Custom Boto3 types |
| 44 |
------------------ |
| 45 |
|
| 46 |
|
| 47 |
.. autoclass:: boto3.dynamodb.types.Binary |
| 48 |
:members: |
| 49 |
:undoc-members: |
| 50 |
|
| 51 |
.. _ref_dynamodb_conditions: |
| 52 |
|
| 53 |
DynamoDB conditions |
| 54 |
------------------- |
| 55 |
|
| 56 |
.. autoclass:: boto3.dynamodb.conditions.Key |
| 57 |
:members: |
| 58 |
:undoc-members: |
| 59 |
:inherited-members: |
| 60 |
|
| 61 |
.. autoclass:: boto3.dynamodb.conditions.Attr |
| 62 |
:members: |
| 63 |
:undoc-members: |
| 64 |
:inherited-members: |