---
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`

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.net/datadog/apis/api-v1.md) · [All operations](https://skmtc.net/datadog/apis/api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v1/revisions/ca5871004d26/schema)
