DynamoDB¶
Utilities for working with Amazon DynamoDB.
Overview¶
| Module | Description |
|---|---|
| Conditions | Query condition builders |
| Functions | DynamoDB utility functions |
| Table | Table wrapper and operations |
ConditionBaseTranslator ¶
deserialize_condition
classmethod
¶
deserialize_condition(condition_expression, is_key=True)
Convert ConditionBase Expression into ConditionBase.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
condition_expression
|
Union[str, ConditionBaseExpression]
|
The expression to convert. |
required |
is_key
|
bool
|
Used to infer attribute name if expression is string. Defaults to True. |
True
|
Returns:
| Type | Description |
|---|---|
ConditionBase
|
The deserialized ConditionBase. |
Source code in src/aibs_informatics_aws_utils/dynamodb/conditions.py
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | |
DynamoDBTable
dataclass
¶
DynamoDBTable()
Bases: LoggingMixin, Generic[DB_MODEL, DB_INDEX]
batch_get ¶
batch_get(keys, partial=False, ignore_missing=False)
Batch get items from a DynamoDB table by providing a list of keys.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
keys
|
Union[List[DynamoDBKey], List[DynamoDBItemValue], List[Tuple[DynamoDBItemValue, DynamoDBItemValue]]]
|
The partition key values that should be used to search the table. Each key can be one of:
|
required |
partial
|
bool
|
Whether partial values are allowed. Defaults to False. |
False
|
ignore_missing
|
bool
|
If true, suppress errors for keys that are not found. Defaults to False. |
False
|
Raises:
| Type | Description |
|---|---|
DBReadException
|
If any of the items could not be found. |
Returns:
| Type | Description |
|---|---|
List[DB_MODEL]
|
List of database entries that were found. |
Source code in src/aibs_informatics_aws_utils/dynamodb/table.py
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 | |
delete ¶
delete(
key: Union[DynamoDBKey, DB_MODEL],
error_on_nonexistent: Literal[True],
) -> DB_MODEL
delete(
key: Union[DynamoDBKey, DB_MODEL],
error_on_nonexistent: Literal[False],
) -> Optional[DB_MODEL]
delete(
key: Union[DynamoDBKey, DB_MODEL]
) -> Optional[DB_MODEL]
delete(key, error_on_nonexistent=False)
Delete an item from the DynamoDB table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
Union[DynamoDBKey, DB_MODEL]
|
The primary key of the item to be deleted, or a DB_MODEL instance representing the item to be deleted. |
required |
error_on_nonexistent
|
bool
|
Whether to raise an error if the item does not exist. Defaults to False. |
False
|
Raises:
| Type | Description |
|---|---|
DBWriteException
|
If there was an error deleting the entry. |
DBWriteException
|
If error_on_nonexistent is True and the item does not exist. |
Returns:
| Type | Description |
|---|---|
Optional[DB_MODEL]
|
The deleted database model entry, or None if the item did not exist and error_on_nonexistent is False. |
Source code in src/aibs_informatics_aws_utils/dynamodb/table.py
766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 | |
get ¶
get(key, partial=False)
Get a single item from a DynamoDB table by providing a key.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
Union[DynamoDBKey, DynamoDBItemValue, Tuple[DynamoDBItemValue, DynamoDBItemValue]]
|
The partition key value that should be used to search the table. Can be a single partition key value, a tuple of partition and sort key value, or a dictionary of attribute:value. |
required |
partial
|
bool
|
Whether partial values are allowed. Defaults to False. |
False
|
Raises:
| Type | Description |
|---|---|
DBReadException
|
If the item could not be found. |
Returns:
| Type | Description |
|---|---|
DB_MODEL
|
The database entry that was found. |
Source code in src/aibs_informatics_aws_utils/dynamodb/table.py
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 | |
put ¶
put(
entry,
condition_expression=None,
**table_put_item_kwargs
)
Put a new item into the DynamoDB table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entry
|
DB_MODEL
|
The database model entry to be put into the table. |
required |
condition_expression
|
Optional[ConditionBase]
|
An optional condition expression that must be satisfied for the put operation to succeed. Defaults to None. |
None
|
**table_put_item_kwargs
|
Additional keyword arguments to be passed to the table_put_item function. |
{}
|
Raises:
| Type | Description |
|---|---|
DBWriteException
|
If there was an error putting the entry. |
DBWriteException
|
If the HTTP response code indicates a failure. |
Returns:
| Type | Description |
|---|---|
DB_MODEL
|
The database model entry that was put into the table. |
Source code in src/aibs_informatics_aws_utils/dynamodb/table.py
621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 | |
query ¶
query(
index,
partition_key,
sort_key_condition_expression=None,
filters=None,
consistent_read=False,
expect_non_empty=False,
expect_unique=False,
allow_partial=False,
)
Query a DynamoDB table by providing a DBIndex, partition_key, optional sort_key, and optional filter conditions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index
|
DB_INDEX
|
Specifies the specific table index (e.g. main table, global secondary index, or local secondary index) that should be queried. |
required |
partition_key
|
Union[DynamoDBPrimaryKeyItemValue, ConditionBase]
|
The partition key value that should be used to search the table. |
required |
sort_key_condition_expression
|
Optional[ConditionBase]
|
The sort key condition expression to be used to query the table. Example: |
None
|
filters
|
Optional[List[ConditionBase]]
|
A list of ConditionBase expressions where query results must satisfy. |
None
|
consistent_read
|
bool
|
Whether a strongly consistent read should be used for the query. By default False which returns eventually consistent reads. |
False
|
expect_non_empty
|
bool
|
Whether the resulting query should return at least one result. An error will be raised if expect_non_empty=True and 0 results were returned by the query. |
False
|
expect_unique
|
bool
|
Whether the result of the query is expected to return AT MOST one result. An error will be raised if expect_unique=True and MORE than 1 result was returned for the query. |
False
|
allow_partial
|
bool
|
Whether to allow partial entries. Defaults to False. |
False
|
Returns:
| Type | Description |
|---|---|
List[DB_MODEL]
|
A list of database model entries where partition_key/sort_key and filter conditions are satisfied. |
Source code in src/aibs_informatics_aws_utils/dynamodb/table.py
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 | |
scan ¶
scan(
index=None,
filters=None,
consistent_read=False,
expect_non_empty=False,
expect_unique=False,
allow_partial=False,
)
Scan a DynamoDB table by providing a DBIndex and optional filter conditions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index
|
Optional[DB_INDEX]
|
Specifies the specific table index (e.g. main table, global secondary index, or local secondary index) that should be scanned. |
None
|
filters
|
Optional[List[ConditionBase]]
|
A list of ConditionBase expressions where scan results must satisfy. |
None
|
consistent_read
|
bool
|
Whether a strongly consistent read should be used for the scan. By default False which returns eventually consistent reads. |
False
|
expect_non_empty
|
bool
|
Whether the resulting scan should return at least one result. An error will be raised if expect_non_empty=True and 0 results were returned by the scan. |
False
|
expect_unique
|
bool
|
Whether the result of the scan is expected to return AT MOST one result. An error will be raised if expect_unique=True and MORE than 1 result was returned for the scan. |
False
|
allow_partial
|
bool
|
Whether to allow partial entries. Defaults to False. |
False
|
Returns:
| Type | Description |
|---|---|
List[DB_MODEL]
|
A list of database model entries where filter conditions are satisfied. |
Source code in src/aibs_informatics_aws_utils/dynamodb/table.py
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 | |
smart_query ¶
smart_query(
*filters,
consistent_read=False,
expect_non_empty=False,
expect_unique=False,
allow_partial=False,
allow_scan=True,
**kw_filters
)
Perform a smart query on the DynamoDB table by automatically determining whether to use a query or scan operation based on the provided filters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*filters
|
Union[DynamoDBKey, ConditionBase]
|
Varargs of DynamoDBKey or ConditionBase to filter the query/scan |
()
|
consistent_read
|
bool
|
Whether a strongly consistent read should be used for the query/scan. Defaults to False which returns eventually consistent reads. |
False
|
expect_non_empty
|
bool
|
Whether the resulting query/scan should return at least one result. An error will be raised if expect_non_empty=True and 0 results were returned. |
False
|
expect_unique
|
bool
|
Whether the result of the query/scan is expected to return AT MOST one result. An error will be raised if expect_unique=True and MORE than 1 result was returned. |
False
|
allow_partial
|
bool
|
Whether to allow partial entries. Defaults to False. |
False
|
allow_scan
|
bool
|
Whether to allow a scan operation if no partition key is found in the filters. Defaults to True. |
True
|
Raises:
| Type | Description |
|---|---|
DBQueryException
|
If no partition key is found and allow_scan is False. |
Returns:
| Type | Description |
|---|---|
List[DB_MODEL]
|
A list of database model entries where partition_key/sort_key and filter conditions are satisfied. |
Source code in src/aibs_informatics_aws_utils/dynamodb/table.py
540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 | |
update ¶
update(
key,
new_entry,
old_entry=None,
**table_update_item_kwargs
)
Update an existing item in the DynamoDB table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
DynamoDBKey
|
The primary key of the item to be updated. |
required |
new_entry
|
Union[Mapping[str, Any], DB_MODEL]
|
The new values for the item. Can be a dictionary of attribute:value pairs or a DB_MODEL instance. |
required |
old_entry
|
Optional[DB_MODEL]
|
The existing entry before the update. If provided, only attributes that differ from the old_entry will be updated. Defaults to None. |
None
|
**table_update_item_kwargs
|
Additional keyword arguments to be passed to the table_update_item function. |
{}
|
Raises:
| Type | Description |
|---|---|
DBWriteException
|
If there was an error updating the entry. |
DBWriteException
|
If no attributes need to be updated. |
Returns:
| Type | Description |
|---|---|
DB_MODEL
|
The updated database model entry. |
Source code in src/aibs_informatics_aws_utils/dynamodb/table.py
668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 | |
build_optimized_condition_expression_set ¶
build_optimized_condition_expression_set(
candidate_indexes, *args, **kwargs
)
Builds an optimized set of conditions for a query or scan
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
candidate_indexes
|
Type[DB_INDEX] | Sequence[DB_INDEX]
|
index class or subset of indexes the order of the indexes matters! The first index that matches the provided conditions will be used. |
required |
*args
|
Union[DynamoDBKey, ConditionBase]
|
varargs of DynamoDBKey or ConditionBase |
()
|
**kwargs
|
Any
|
kwargs of DynamoDBKey or ConditionBase |
{}
|
Returns:
| Type | Description |
|---|---|
Tuple[Optional[DB_INDEX], Optional[ConditionBase], Optional[ConditionBase], List[ConditionBase]]
|
A tuple containing: the target index, partition key condition, sort key condition, and filter expressions. |
Source code in src/aibs_informatics_aws_utils/dynamodb/table.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | |
convert_decimals_to_floats ¶
convert_decimals_to_floats(item, in_place=True)
Convert all Decimal values in a dictionary to floats.
DynamoDB returns numeric values as Decimal objects. This function recursively converts them to standard Python floats.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
item
|
Dict[str, Any]
|
Dictionary potentially containing Decimal values. |
required |
in_place
|
bool
|
If True, modify the dictionary in place. If False, create a copy first. Defaults to True. |
True
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
The dictionary with all Decimals converted to floats. |
Source code in src/aibs_informatics_aws_utils/dynamodb/functions.py
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 | |
convert_floats_to_decimals ¶
convert_floats_to_decimals(item, in_place=True)
Convert all float values in a dictionary to Decimals.
DynamoDB requires numeric values to be Decimal objects. This function recursively converts Python floats to Decimals for storage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
item
|
Dict[str, Any]
|
Dictionary potentially containing float values. |
required |
in_place
|
bool
|
If True, modify the dictionary in place. If False, create a copy first. Defaults to True. |
True
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
The dictionary with all floats converted to Decimals. |
Source code in src/aibs_informatics_aws_utils/dynamodb/functions.py
499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 | |
execute_partiql_statement ¶
execute_partiql_statement(statement, region=None)
Execute a PartiQL statement against DynamoDB.
Handles pagination automatically to retrieve all results.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
statement
|
str
|
The PartiQL statement to execute. |
required |
region
|
Optional[str]
|
AWS region. Defaults to None (uses default region). |
None
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List of items returned by the statement. |
Source code in src/aibs_informatics_aws_utils/dynamodb/functions.py
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 | |
table_as_resource ¶
table_as_resource(table, region=None)
Get a DynamoDB Table resource.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
Name of the table. |
required |
region
|
Optional[str]
|
AWS region. Defaults to None (uses default region). |
None
|
Returns:
| Type | Description |
|---|---|
|
A boto3 DynamoDB Table resource. |
Source code in src/aibs_informatics_aws_utils/dynamodb/functions.py
450 451 452 453 454 455 456 457 458 459 460 461 | |
table_delete_item ¶
table_delete_item(
table_name,
key,
condition_expression=None,
return_values="NONE",
**kwargs
)
Delete an item from a DynamoDB table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
Name of the table. |
required |
key
|
Mapping[str, Any]
|
Dictionary of key attribute(s) identifying the item to delete. |
required |
condition_expression
|
Optional[ConditionBase]
|
Optional condition that must be satisfied for the delete to succeed. |
None
|
return_values
|
Literal['NONE', 'ALL_OLD']
|
What to return after the delete. Options:
|
'NONE'
|
**kwargs
|
Additional arguments passed to |
{}
|
Returns:
| Type | Description |
|---|---|
Optional[Dict[str, Any]]
|
The deleted item's attributes if |
Source code in src/aibs_informatics_aws_utils/dynamodb/functions.py
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | |
table_get_item ¶
table_get_item(table_name, key, attrs=None)
Get a single item from a DynamoDB table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
Name of the table. |
required |
key
|
Mapping[str, Any]
|
Dictionary of key attribute(s) identifying the item to get. |
required |
attrs
|
Optional[str]
|
Optional projection expression specifying which attributes to retrieve. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[Dict[str, Any]]
|
The item if found, None otherwise. |
Source code in src/aibs_informatics_aws_utils/dynamodb/functions.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
table_get_items ¶
table_get_items(table_name, keys, attrs=None, region=None)
Batch get multiple items from a DynamoDB table.
Handles pagination automatically when more than 100 keys are provided.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
Name of the table. |
required |
keys
|
List[Mapping[str, Any]]
|
List of key dictionaries identifying the items to get. |
required |
attrs
|
Optional[str]
|
Optional projection expression specifying which attributes to retrieve. |
None
|
region
|
Optional[str]
|
AWS region. Defaults to None (uses default region). |
None
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List of items found. |
Source code in src/aibs_informatics_aws_utils/dynamodb/functions.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |
table_get_key_schema ¶
table_get_key_schema(table_name)
Get the key schema for a DynamoDB table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
Name of the table. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Dict[str, str]
|
Mapping of key type to attribute name. |
|
Example |
Dict[str, str]
|
|
Source code in src/aibs_informatics_aws_utils/dynamodb/functions.py
411 412 413 414 415 416 417 418 419 420 421 422 | |
table_put_item ¶
table_put_item(
table_name, item, condition_expression=None, **kwargs
)
Put an item into a DynamoDB table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
Name of the table. |
required |
item
|
Dict[str, Any]
|
Dictionary representing the item to put. |
required |
condition_expression
|
Optional[ConditionBase]
|
Optional condition that must be satisfied for the put to succeed. |
None
|
**kwargs
|
Additional arguments passed to |
{}
|
Returns:
| Type | Description |
|---|---|
PutItemOutputTableTypeDef
|
Response from the put_item operation. |
Source code in src/aibs_informatics_aws_utils/dynamodb/functions.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
table_query ¶
table_query(
table_name,
key_condition_expression,
index_name=None,
filter_expression=None,
region=None,
consistent_read=False,
)
Query a DynamoDB table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
Name of the table. |
required |
key_condition_expression
|
ConditionBase
|
Key condition expression for the query. |
required |
index_name
|
Optional[str]
|
Index name. Defaults to None (query the main table). |
None
|
filter_expression
|
Optional[ConditionBase]
|
Filter expression to apply after the query. Defaults to None. |
None
|
region
|
Optional[str]
|
AWS region. Defaults to None (uses default region). |
None
|
consistent_read
|
bool
|
Whether a strongly consistent read should be used. Defaults to False. Note: Strongly consistent reads are not supported for global secondary indexes. |
False
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List of items matching the query. |
Source code in src/aibs_informatics_aws_utils/dynamodb/functions.py
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 | |
table_scan ¶
table_scan(
table_name,
index_name=None,
filter_expression=None,
region=None,
consistent_read=False,
)
Scan a DynamoDB table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
Name of the table. |
required |
index_name
|
Optional[str]
|
Index name. Defaults to None (scan the main table). |
None
|
filter_expression
|
Optional[ConditionBase]
|
Filter expression to apply. Defaults to None. |
None
|
region
|
Optional[str]
|
AWS region. Defaults to None (uses default region). |
None
|
consistent_read
|
bool
|
Whether a strongly consistent read should be used. Defaults to False. Note: Strongly consistent reads are not supported for secondary indexes. |
False
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List of items from the scan. |
Source code in src/aibs_informatics_aws_utils/dynamodb/functions.py
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 | |
table_update_item ¶
table_update_item(
table_name,
key,
attributes,
return_values="NONE",
**kwargs
)
Update an item in a DynamoDB table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
Name of the table. |
required |
key
|
Mapping[str, Any]
|
Dictionary of key attribute(s) identifying the item to update. |
required |
attributes
|
Mapping[str, Any]
|
Dictionary of attributes to update. |
required |
return_values
|
Literal['NONE', 'ALL_OLD', 'UPDATED_OLD', 'ALL_NEW', 'UPDATED_NEW']
|
What to return after the update. Options:
|
'NONE'
|
**kwargs
|
Additional arguments passed to |
{}
|
Returns:
| Type | Description |
|---|---|
Optional[Dict[str, Any]]
|
The attributes based on |
Source code in src/aibs_informatics_aws_utils/dynamodb/functions.py
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | |