---
title: "Create an Amazon EventBridge source"
method: POST
path: "/api/v2/integration/aws/event_bridge"
tags: ["AWS Integration"]
---

# Create an Amazon EventBridge source

`POST /api/v2/integration/aws/event_bridge`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/integration/aws/event_bridge`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Create an Amazon EventBridge source.

## Request body

- AWSEventBridgeCreateRequest: Amazon EventBridge create request body.
  - `data` AWSEventBridgeCreateRequestData, required: Amazon EventBridge create request data.
    - `attributes` AWSEventBridgeCreateRequestAttributes, required: The EventBridge source to be created.
      - `account_id` string, required: AWS Account ID.
      - `create_event_bus` boolean: Set to true if Datadog should create the event bus in addition to the event source. Requires the `events:CreateEventBus` permission.
      - `event_generator_name` string, required: The given part of the event source name, which is then combined with an assigned suffix to form the full name.
      - `region` string, required: The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).
    - `type` 'event_bridge', required: Amazon EventBridge resource type.

## Response `200`

Amazon EventBridge source created.

- AWSEventBridgeCreateResponse: Amazon EventBridge create response body.
  - `data` AWSEventBridgeCreateResponseData, required: Amazon EventBridge create response data.
    - `attributes` AWSEventBridgeCreateResponseAttributes, required: A created EventBridge source.
      - `event_source_name` string: The event source name.
      - `has_bus` boolean: True if the event bus was created in addition to the source.
      - `region` string: The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).
      - `status` 'created': The event source status "created".
    - `id` string: The ID of the Amazon EventBridge create response data.
    - `type` 'event_bridge', required: Amazon EventBridge resource type.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `409`: Conflict
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
