in traffic_mirroring/backfill_handler.py [0:0]
def update_sns_config(event, describe_instances_response):
global SNS_CONFIG
SNS_CONFIG.topic_arn = event["Records"][0]["Sns"]["TopicArn"]
if "NextToken" in describe_instances_response:
SNS_CONFIG.next_token = describe_instances_response["NextToken"]
else:
SNS_CONFIG.next_token = None