in source/lib/notify.py [0:0]
def customer(self, arn, message):
try:
sns_client = boto3.resource('sns')
topic = sns_client.Topic(arn)
response = topic.publish(
Subject='EFS Backup Status',
Message=json.dumps(message, indent=4, cls=DecimalEncoder, sort_keys=True),
)
self.logger.info('SNS Publish Response')
self.logger.info(response)
return response
except Exception as e:
self.logger.error("unhandled exception: Notify_customer", exc_info=1)