in read_write_operator_input.py [0:0]
def put_operator_input(timestamp, alias, value, comment):
item = {
'timestamp': timestamp,
'propertyAlias': alias,
'propertyValue': value,
'comment': comment
}
try:
response = table.put_item(Item=item)
except ClientError as e:
print(e.response['Error']['Message'])
else:
return response