We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 996ef19 commit 8a54539Copy full SHA for 8a54539
lambdas/batch_processor_filter/src/batch_audit_repository.py
@@ -1,6 +1,6 @@
1
-import boto3
2
from boto3.dynamodb.conditions import Key
3
+from common.aws_dynamodb import get_dynamodb_table
4
from constants import (
5
AUDIT_TABLE_FILENAME_GSI,
6
AUDIT_TABLE_NAME,
@@ -22,7 +22,7 @@ class BatchAuditRepository:
22
_PROCESSING_AND_FAILED_STATUSES = {FileStatus.PROCESSING, FileStatus.FAILED}
23
24
def __init__(self):
25
- self._batch_audit_table = boto3.resource("dynamodb", region_name=REGION_NAME).Table(AUDIT_TABLE_NAME)
+ self._batch_audit_table = get_dynamodb_table(AUDIT_TABLE_NAME)
26
27
def is_duplicate_file(self, file_key: str) -> bool:
28
matching_files = self._batch_audit_table.query(
0 commit comments