v1

latestOpenAPI 3.0.02026-07-142351,1971.3 MB
AWS Logs Integration

Check that an AWS Lambda Function exists

Test if permissions are present to add a log-forwarding triggers for the given services and AWS account. The input is the same as for Enable an AWS service log collection. Subsequent requests will always repeat the above, so this endpoint can be polled intermittently instead of blocking.

  • Returns a status of 'created' when it's checking if the Lambda exists in the account.
  • Returns a status of 'waiting' while checking.
  • Returns a status of 'checked and ok' if the Lambda exists.
  • Returns a status of 'error' if the Lambda does not exist.
post/api/v1/integration/aws/logs/check_async

Request body

account_idstring required

Your AWS Account ID without dashes.

lambda_arnstring required

ARN of the Datadog Lambda created during the Datadog-Amazon Web services Log collection setup.

Example request

{
  "account_id": "1234567",
  "lambda_arn": "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest"
}

Response

OK

statusstring

Status of the properties.

Example response

{
  "errors": [
    {
      "code": "no_such_config",
      "message": "AWS account 12345 has no Lambda config to update"
    }
  ],
  "status": "created"
}