This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-17
Channels
- # adventofcode (56)
- # announcements (1)
- # aws (6)
- # beginners (127)
- # bristol-clojurians (1)
- # calva (29)
- # cider (7)
- # clj-kondo (37)
- # cljdoc (20)
- # cljsrn (7)
- # clojure (159)
- # clojure-europe (67)
- # clojure-italy (23)
- # clojure-nl (4)
- # clojure-provo (3)
- # clojure-uk (18)
- # clojurescript (19)
- # code-reviews (59)
- # community-development (105)
- # conjure (6)
- # core-async (16)
- # core-logic (1)
- # cursive (21)
- # datomic (19)
- # defnpodcast (1)
- # emacs (8)
- # events (2)
- # fulcro (71)
- # graalvm (23)
- # jobs-discuss (1)
- # kaocha (5)
- # luminus (5)
- # meander (16)
- # nrepl (32)
- # off-topic (6)
- # pathom (159)
- # pedestal (3)
- # reagent (14)
- # reitit (8)
- # reveal (12)
- # rewrite-clj (9)
- # shadow-cljs (169)
- # spacemacs (16)
- # specter (2)
- # sql (19)
- # tools-deps (36)
- # vim (6)
I was able to make the request with Boto3 in python using the same parameters and it works right away. There's likely to be a bug in aws-cli for this client, @alexmiller
https://github.com/cognitect-labs/aws-api/issues is the best place to file bugs
@dennisa what Alex says is true, however, since I’m here …
(doc aws/client)
-------------------------
cognitect.aws.client.api/client
([{:keys [api region region-provider retriable? backoff credentials-provider endpoint endpoint-override http-client], :or {endpoint-override {}}}])
Given a config map, create a client for specified api. Supported keys:
:api - required, this or api-descriptor required, the name of the api
you want to interact with e.g. :s3, :cloudformation, etc
:http-client - optional, to share http-clients across aws-clients.
See default-http-client.
:region-provider - optional, implementation of aws-clojure.region/RegionProvider
protocol, defaults to cognitect.aws.region/default-region-provider.
Ignored if :region is also provided
:region - optional, the aws region serving the API endpoints you
want to interact with, defaults to region provided by
by the region-provider
:credentials-provider - optional, implementation of
cognitect.aws.credentials/CredentialsProvider
protocol, defaults to
cognitect.aws.credentials/default-credentials-provider
:endpoint-override - optional, map to override parts of the endpoint. Supported keys:
:protocol - :http or :https
:hostname - string
:port - int
:path - string
If the hostname includes an AWS region, be sure use the same
region for the client (either via out of process configuration
or the :region key supplied to this fn).
Also supports a string representing just the hostname, though
support for a string is deprectated and may be removed in the
future.
:retriable? - optional, fn of http-response (see cognitect.aws.http/submit).
Should return a boolean telling the client whether or
not the request is retriable. The default,
cognitect.aws.retry/default-retriable?, returns
true when the response indicates that the service is
busy or unavailable.
:backoff - optional, fn of number of retries so far. Should return
number of milliseconds to wait before the next retry
(if the request is retriable?), or nil if it should stop.
Defaults to cognitect.aws.retry/default-backoff.
By default, all clients use shared http-client, credentials-provider, and
region-provider instances which use a small collection of daemon threads.
Alpha. Subject to change.
You should use the `:endpoint-override` key. There is no support for `:endpoint`.I see that endpoint
is included in the destructuring vector. I’ll remove that. I can’t recall if it was ever supported.