Any idea how to get a full list of clients for the https://github.com/cognitect-labs/aws-api? e.g s3, cloudwatch, etc...
@drewverlee do you mean the list of APIs? This library just uses the api descriptions from the js sdk. It is described here: https://github.com/cognitect-labs/aws-api#approach I donβt see cloudwatch in the list, but if you are making cloudwatch rules you can use the eventbridge api (aws renamed it)
ok so Cloudwatch is there @drewverlee, check out :monitoring, :logs and others
@dimitar.ouzounoff Ty, yes i meant the list of apis. I was able to find cloudwatch, though as your comment suggests, there are a couple different takes on logs. I sort of want all the logs, So i can search them...
this is the cloudwatch api, it is just that cw is actually multiple services
I check it here, is that what you want? https://github.com/cognitect-labs/aws-api/blob/main/latest-releases.edn
@danieljomphe yep, the list of "api"'s you can pass as the :api key to aws/client seems to be (->> "latest-releases.edn" slurp edn/read-string keys (map name) (map keyword)) it's not obvious from the start thats the case though.
would it just be the deps.edn deps key "name"? com.cognitect.aws/logs -> logs -> (aws/client {:api :logs ...})
yes, that seems to be the case.
i'm guessing someone has built an aws cloudwatch client for clojure and i don't need to re-invent the wheel here... but it might be just as easy using clojures built in https://www.juxt.pro/blog/new-clojure-iteration function
Would there be a wider interest in some examples of how to pull data from cloudwatch using aws-api? If so, I might try to clean up the code i write and make a small library and/or set of examples. I mostly foresee having to write some pagination code using the iteration function (as i mention in the thread above). Meanwhile, if you read this and happen to have done this already and want to share notes let me know π