Fork me on GitHub
#aws
<
2020-12-17
>
dabrazhe11:12:33

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

dchelimsky21:12:13

@dennisa what Alex says is true, however, since I’m here …

dchelimsky22:12:28

(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`.

dchelimsky22:12:00

I see that endpoint is included in the destructuring vector. I’ll remove that. I can’t recall if it was ever supported.