AWS Lambda for listing Elasticsearch backups:

A parameter of type ListBackupsRequest must be provided to the Lambda.

{
 "host": "endpoint of the aws elasticsearch domain",
 "bucket": "Snapshot repository name"
}

Reference:

Elasticsearch cat api

Elasticsearch cat snapshots