Amazon Batch Event Stream for Amazon EventBridge - Amazon Batch
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).

Amazon Batch Event Stream for Amazon EventBridge

You can use the Amazon Batch event stream for Amazon EventBridge to receive near real-time notifications regarding the current state of jobs in your job queues.

You can use EventBridge to gain further insights about your Amazon Batch service. More specifically, you can use it to check the progress of jobs, build Amazon Batch custom workflows, generate usage reports or metrics, or build your own dashboards. With Amazon Batch and EventBridge, you don't need scheduling and monitoring code that continuously polls Amazon Batch for job status changes. Instead, you can handle Amazon Batch job state changes asynchronously using a variety of Amazon EventBridge targets. These include Amazon Lambda, Amazon Simple Queue Service, Amazon Simple Notification Service, or Amazon Kinesis Data Streams.

Events from the Amazon Batch event stream are ensured to be delivered at least one time. In the event that duplicate events are sent, the event provides enough information to identify duplicates. That way, you can compare the time stamp of the event and the job status.

Amazon Batch jobs are available as EventBridge targets. Using simple rules, you can match events and submit Amazon Batch jobs in response to them. For more information, see What is EventBridge? in the Amazon EventBridge User Guide. You can also use EventBridge to schedule automated actions that self-trigger at certain times using cron or rate expressions. For more information, see Creating an Amazon EventBridge rule that runs on a schedule in the Amazon EventBridge User Guide. For an example walkthrough, see Amazon Batch jobs as EventBridge targets. For information about using the EventBridge Scheduler, see Setting up Amazon EventBridge Scheduler in the Amazon EventBridge User Guide.

Using Amazon User Notifications with Amazon Batch

You can use Amazon User Notifications to set up delivery channels to get notified about Amazon Batch events. You receive a notification when an event matches a rule that you specify. You can receive notifications for events through multiple channels, including email, Amazon Chatbot chat notifications, or Amazon Console Mobile Application push notifications. You can also see notifications in the Console Notifications Center. User Notifications supports aggregation, which can reduce the number of notifications you receive during specific events.

To configure User Notifications in Amazon Batch:

  1. Open the Amazon Batch console.

  2. Choose Dashboard.

  3. Choose Configure Notifications.

  4. In Amazon User Notifications, choose Create notification configuration.

For more information about how to configure and view user notifications, see Getting started with Amazon User Notifications.