in codes/sample-backend-fastapi/app/utility.py [0:0]
def __init__(self, table_name: str):
super().__init__()
try:
service_name = 'dynamodb'
self.resource = boto3.resource(service_name)
self.table = self.resource.Table(table_name)
except ClientError as e:
print('[ERROR] init ClientError', e)