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