Check that an AWS Lambda Function exists

POST {{baseUrl}}/api/v1/integration/aws/logs/check_async

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.

Request Body

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

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

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