Skip to content

Instantly share code, notes, and snippets.

import boto3
import time
def message_deduplication(message):
alerthash = hashlib.md5(message.encode())
ttl = str(int(time.time()+600))
dynamodbclient = boto3.client('dynamodb')
response = dynamodbclient.get_item(
Key={