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 condition where the attribute begins with the value.
between(low_value, high_value)¶Creates a condition where the attribute is greater than or equal to the low value and less than or equal to the high value.
eq(value)¶Creates a condition where the attribute is equal to the value.
gt(value)¶Creates a condition where the attribute is greater than the value.
gte(value)¶lt(value)¶Creates a condition where the attribute is less than the value.
lte(value)¶boto3.dynamodb.conditions.Attr(name)[source]¶Represents an DynamoDB item's attribute.
attribute_type(value)[source]¶Creates a condition for the attribute type.
begins_with(value)¶Creates a condition where the attribute begins with the value.
between(low_value, high_value)¶Creates a condition where the attribute is greater than or equal to the low value and less than or equal to the high value.
contains(value)[source]¶Creates a condition where the attribute contains the value.
eq(value)¶Creates a condition where the attribute is equal to the value.
gt(value)¶Creates a condition where the attribute is greater than the value.
gte(value)¶is_in(value)[source]¶Creates a condition where the attribute is in the value,
lt(value)¶Creates a condition where the attribute is less than the value.
lte(value)¶