Set up Amazon S3 Bucket Event Notifications - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Set up Amazon S3 Bucket Event Notifications

You can add an event notification to your Amazon S3 bucket using the Amazon S3 console, API, and language specific Amazon SDKs, or the Amazon Command Line Interface. Set up this event to send notifications to the same Amazon SNS input topic that you specify using SnsTopicArn in InputConfig when you create a labeling job. Do not set up event notifications using the same Amazon S3 location that you specified for S3OutputPath in OutputConfig – doing so may result in unwanted data objects being processed by Ground Truth for labeling.

You decide the types of events that you want to send to your Amazon SNS topic. Ground Truth creates a labeling job when you send object creation events.

The event structure sent to your Amazon SNS input topic must be a JSON message formatted using the same structure found in Event message structure.

To see examples of how you can set up an event notification for your Amazon S3 bucket using the Amazon S3 console, Amazon SDK for .NET, and Amazon SDK for Java, follow this walkthrough, Walkthrough: Configure a bucket for notifications (SNS topic or SQS queue) in the Amazon Simple Storage Service User Guide.