Customize Groundtruth labelling job email notification

0

Hi, I have as SNS topic assigned to my private workforce in sagemaker groundtruth. Whenever a new groundtruth labelling job is created, the workers in the private workforce are notified by an email about the labelling job they want to work on. Now, i want to customize the email sent to the workers. How can i modify the contents of the email which is sent to annotators?

1 回答
0
已接受的回答

Hello,

There is no direct method to customise the emails from console. However, as a workaround you can try any of the below mentioned methods as per your use case

-----> Method 1 :

You can use the Lambda function to customise the email and then forward using another SNS Topic. The flow would be as mentioned below:

SNS topicA → Lambda function(with custom logic to customise the email) → SNS topicB → email endpoint

Please refer below blog for more information on the same: [+]https://aws.amazon.com/blogs/mt/customize-amazon-cloudwatch-alarm-notifications-to-your-local-time-zone-part-2/

Note: This blog is from cloudwatch notifications, however similar approach would be applicable for all use cases where emails are being sent from SNS topic.

Also, below are the steps which you can follow to achieve the same at your end:

→ Create SNS topic → Create a Lambda function. → Subscribe the Lambda function to SNS topic created → Create another SNS topic from which the final emails will be sent. → Configure the Lambda function(customise the logic based on the need) to publish[1] a custom email subject or a custom message to the Amazon SNS topic. → Subscribe the emails to the SNS topic to receive the message.

-----> Method 2 :

In this method, you can use the Lambda function to customise the email received on the SNS Topic and then forward using SES service. The flow would be as mentioned below:

SNS topic → Lambda (with custom logic to customise the email) → SES API to send emails

Please find the below documentation for more information on sending SES email messages using lambda function:

[+]https://aws.amazon.com/premiumsupport/knowledge-center/lambda-send-email-ses/

I would like to take a moment to inform you that the above solution would require expertise from your end to write/debug/modify/test the custom lambda code / script for your use-case as code support is out of AWS support scope and any assistance on it is on best effort basis only.

References: [1]https://docs.aws.amazon.com/sns/latest/api/API_Publish.html

AWS
支持工程师
Palak
已回答 5 个月前
profile picture
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则