python-boto3/docs/source/reference/customizations/dynamodb.rst

65 lines
2.8 KiB
ReStructuredText
Raw Normal View History

2015-11-27 23:25:33 +01:00
.. _ref_custom_dynamodb:
================================
2021-09-22 18:34:33 +02:00
DynamoDB customization reference
2015-11-27 23:25:33 +01:00
================================
.. _ref_valid_dynamodb_types:
2021-09-22 18:34:33 +02:00
Valid DynamoDB types
2015-11-27 23:25:33 +01:00
--------------------
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) |
+----------------------------------------------+-----------------------------+
2021-09-22 18:34:33 +02:00
Custom Boto3 types
2015-11-27 23:25:33 +01:00
------------------
.. autoclass:: boto3.dynamodb.types.Binary
:members:
:undoc-members:
.. _ref_dynamodb_conditions:
2021-09-22 18:34:33 +02:00
DynamoDB conditions
2015-11-27 23:25:33 +01:00
-------------------
.. autoclass:: boto3.dynamodb.conditions.Key
:members:
:undoc-members:
:inherited-members:
.. autoclass:: boto3.dynamodb.conditions.Attr
:members:
:undoc-members:
:inherited-members: