Fork me on GitHub

it's a bit funny that there are so many sources of AWS API descriptions :D


Regarding the Cognitect aws-api. I need to pass, to an aws client. Can use the :endpoint keyword?


(def kvmedia (aws/client {:api :kinesis-video-media :endpoint kvs-endpoint :credentials-provider (cred/profile-credentials-provider "devpl")}))

Alex Miller (Clojure team)17:12:04

did you check the doc string?


yes: ) endpoint it's not described in the doc string. The reason I am asking: I can successfully execute the call to kinesis-video-media with aws-CLI from the terminal. But the aws/invoke gives me headaches; I am getting an error which makes not much sense to me.

{:cognitect.anomalies/category :cognitect.anomalies/fault,
    {:cause "JSON error (unexpected character): <",

Alex Miller (Clojure team)17:12:33

I see :endpoint-override in the doc string?


Does this mean there's a fault my client config, or aws/invoke or is it a bug in aws-cli? 🙂

Alex Miller (Clojure team)17:12:28

it sounds to me like you're invoking the client with options that aren't documented and maybe don't exist, so without knowing more that sounds like an error in your code

Alex Miller (Clojure team)17:12:05

I believe :endpoint as a key there is deprecated (which is why it's not doc'ed) and :endpoint-override is the documented support for this