Using EventBridge with Amazon Pricing Calculator - Amazon Cost Management
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).

Using EventBridge with Amazon Pricing Calculator

The in-console Amazon Pricing Calculator can send events to Amazon EventBridge whenever certain events happen in your bill estimate. Unlike other destinations, you don't need to select which event types you want to deliver. After you have EventBridge set up, Pricing Calculator events can be sent to EventBridge. You can use EventBridge rules to route events to additional targets. For more information about setting up EventBridge, see Amazon EventBridge setup and prerequisites in the Amazon EventBridge API Reference.

The following lists the events Amazon Pricing Calculator sends to EventBridge.

Event type Description

BillEstimate Created

A bill estimate was created.

The ARN, estimate name, and estimate ID of the bill estimate for which the event is sent to EventBridge will be emitted in the event.

BillEstimate Succeeded

A bill estimate completed. This means you will now be able to view the results of the bill estimate.

The ARN, estimate name, and estimate ID of the bill estimate for which the event is sent to EventBridge will be emitted in the event.

BillEstimate Failed

A bill estimate generation failed.

The ARN, estimate name, and estimate ID of the bill estimate for which the event is sent to EventBridge will be emitted in the event.

You can also use Amazon Pricing Calculator to send event notifications with EventBridge to write rules that take actions when an event occurs pertaining to your estimate. For example, you can have it send you a notification. For more information about rules in Amazon EventBridge, see Create a rule in Amazon EventBridge in the Amazon EventBridge API Reference.

For more information about the actions and data types you can interact with using the EventBridge API, see Amazon EventBridge API Reference in the Amazon EventBridge API Reference.

Amazon EventBridge permissions

Amazon Pricing Calculator doesn't require any additional permissions to deliver events to Amazon EventBridge.

Event message structure examples

BillEstimate Created

{ "version": "0", "id": "830097cf-bcd1-a119-d507-7d84c5f4c5dd-EXAMPLE", "detail-type": "BillEstimate Created", "source": "aws.bcm-pricing-calculator", "account": "111122223333", "time": "2024-09-12T13:47:34Z", "region": "us-east-1", "resources": ["arn:aws:111122223333::bill-estimate/1234567890-0234567890-234567890-fdaffa"], "detail": { "id": "1234567890-0234567890-234567890-fdaffa-EXAMPLE", "name": "amzn-example-name" }, "metadata": { "tags": { "tagKey1": "value1" } } }

BillEstimate Succeeded

{ "version": "0", "id": "830097cf-bcd1-a119-d507-7d84c5f4c5dd", "detail-type": "BillEstimate Succeeded", "source": "aws.bcm-pricing-calculator", "account": "111222333444", "time": "2024-09-12T13:47:34Z", "region": "us-east-1", "resources": ["arn:aws:111222333444::bill-estimate/1234567890-0234567890-234567890-fdaffa"], "detail": { "id": "1234567890-0234567890-234567890-fdaffa", "name": "amzn-demo-name" }, "metadata": { "tags": { "tagKey1": "value1" } } }

BillEstimate Failed

{ "version": "0", "id": "830097cf-bcd1-a119-d507-7d84c5f4c5dd", "detail-type": "BillEstimate Failed", "source": "aws.bcm-pricing-calculator", "account": "111222333444", "time": "2024-09-12T13:47:34Z", "region": "us-east-1", "resources": ["arn:aws:111222333444::bill-estimate/1234567890-0234567890-234567890-fdaffa"], "detail": { "id": "1234567890-0234567890-234567890-fdaffa", "name": "amzn-demo-name" "reasonMessage": "Bad input." }, "metadata": { "tags": { "tagKey1": "value1" } } }