This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-07
Channels
- # adventofcode (40)
- # aws (15)
- # babashka (76)
- # beginners (39)
- # calva (6)
- # cider (3)
- # clj-kondo (3)
- # clojure (89)
- # clojure-austin (1)
- # clojure-australia (4)
- # clojure-europe (42)
- # clojure-italy (9)
- # clojure-nl (27)
- # clojure-spec (8)
- # clojure-uk (17)
- # clojurescript (9)
- # conjure (1)
- # data-science (1)
- # datomic (19)
- # deps-new (4)
- # docker (9)
- # emacs (5)
- # events (1)
- # fulcro (36)
- # kaocha (31)
- # lambdaisland (5)
- # leiningen (3)
- # membrane (3)
- # nrepl (10)
- # off-topic (31)
- # pedestal (7)
- # reveal (47)
- # shadow-cljs (35)
- # sql (9)
- # test-check (1)
- # tools-deps (24)
- # uncomplicate (12)
- # xtdb (5)
Hi. Does anyone have an example or can explain how to work with ClientBuilders in AWS SDK in Clojure? I am can create a builder (AmazonKinesisVideoClient/builder)
but when trying to (.build)
it, I am getting all sorts of errors, eg - call to method withRegion can't be resolved (target class is unknown).
It's along the lines of
(doto (AmazonKinesisVideoClientBuilder/standard)
(.withRegion region-const)
(.withCredentials credential-provider)
....
(.build))
I haven't tried the cognitect aws client yet. It's more an API caller. It felt calling the Java SDK from Clojure would be more native : )
it's not :)
using the java sdk means making function calls to generate a bunch of objects which get turned into a bunch of http calls. the cognitect aws api is a functional api to make those http calls without all the junk in the middle
Isn't processing java objects returned by the SDK easier than parsing the output of the https calls ? : )
no, it's all autogenerated
amazon publishes data files describing the apis
https://www.youtube.com/watch?v=ppDtDP0Rntw if you're interested in more talking :)
also has autogenerated docs and clojure specs
Thank you, will have a look. I guess the cognitect aws client is similar to aws-cli in a way? Does the api it return the native Clojure data stuctures ? : )
you can find some examples here https://github.com/cognitect-labs/aws-api/blob/master/README.md#usage