in wallboard-import.py [0:0]
def SaveToDynamoDB(WallboardName,Records,RecordType):
Count = 0
Dynamo = boto3.client("dynamodb")
for Item in Records:
Item["Identifier"] = {"S":WallboardName}
if RecordType != "Settings":
Item["RecordType"] = {"S":RecordType+str(Count)}
Count += 1
else:
Item["RecordType"] = {"S":RecordType}
try:
Dynamo.put_item(TableName=DDBTableName, Item=Item)
except ClientError as e:
print("DynamoDB error: "+e.response["Error"]["Message"])