---
title: "Add AWS Log Lambda ARN"
method: POST
path: "/api/v1/integration/aws/logs"
tags: ["AWS Logs Integration"]
---

# Add AWS Log Lambda ARN

`POST /api/v1/integration/aws/logs`

## Request

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

Attach the Lambda ARN of the Lambda created for the Datadog-AWS log collection to your AWS account ID to enable log collection.

## Request body

- AWSAccountAndLambdaRequest: AWS account ID and Lambda ARN.
  - `account_id` string, required: Your AWS Account ID without dashes.
  - `lambda_arn` string, required: ARN of the Datadog Lambda created during the Datadog-Amazon Web services Log collection setup.

## Response `200`

OK

- object

## Other responses

- `400`: Bad Request
- `403`: Authentication Error
- `429`: Too many requests

---

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