These are the valid item types to use with Boto3 Table Resource (dynamodb.Table
) and DynamoDB:
Python Type | DynamoDB Type |
---|---|
string | String (S) |
integer | Number (N) |
decimal.Decimal |
Number (N) |
boto3.dynamodb.types.Binary |
Binary (B) |
boolean | Boolean (BOOL) |
None |
Null (NULL) |
string set | String Set (SS) |
integer set | Number Set (NS) |
decimal.Decimal set |
Number Set (NS) |
boto3.dynamodb.types.Binary set |
Binary Set (BS) |
list | List (L) |
dict | Map (M) |
boto3.dynamodb.conditions.
Key
(name)[source]¶begins_with
(value)¶Creates a condtion where the attribute begins with the value.
Parameters: | value -- The value that the attribute begins with. |
---|
between
(low_value, high_value)¶Parameters: |
|
---|
eq
(value)¶Creates a condtion where the attribute is equal to the value.
Parameters: | value -- The value that the attribute is equal to. |
---|
gt
(value)¶Creates a condtion where the attribute is greater than the value.
Parameters: | value -- The value that the attribute is greater than. |
---|
gte
(value)¶Parameters: | value -- The value that the attribute is greater than or equal to. |
---|
lt
(value)¶Creates a condtion where the attribute is less than the value.
Parameters: | value -- The value that the attribute is less than. |
---|
lte
(value)¶Parameters: | value -- The value that the attribute is less than or equal to. |
---|
boto3.dynamodb.conditions.
Attr
(name)[source]¶Represents an DynamoDB item's attribute.
attribute_type
(value)[source]¶Creates a condition for the attribute type.
Parameters: | value -- The type of the attribute. |
---|
begins_with
(value)¶Creates a condtion where the attribute begins with the value.
Parameters: | value -- The value that the attribute begins with. |
---|
between
(low_value, high_value)¶Parameters: |
|
---|
contains
(value)[source]¶Creates a condition where the attribute contains the value.
Parameters: | value -- The value the attribute contains. |
---|
eq
(value)¶Creates a condtion where the attribute is equal to the value.
Parameters: | value -- The value that the attribute is equal to. |
---|
gt
(value)¶Creates a condtion where the attribute is greater than the value.
Parameters: | value -- The value that the attribute is greater than. |
---|
gte
(value)¶Parameters: | value -- The value that the attribute is greater than or equal to. |
---|
is_in
(value)[source]¶Creates a condtion where the attribute is in the value,
Parameters: | value (list) -- The value that the attribute is in. |
---|
lt
(value)¶Creates a condtion where the attribute is less than the value.
Parameters: | value -- The value that the attribute is less than. |
---|
lte
(value)¶Parameters: | value -- The value that the attribute is less than or equal to. |
---|