Liking cljdoc? Tell your friends :D

aws-sig4.middleware


build-wrap-aws-authclj

(build-wrap-aws-auth {:keys [region service access-key secret-key token]
                      :as aws-opts})

Build an clj-http middleware instance that adds the Authorization header into the outgoing request as specified by AWS Signature Version 4 Signing Process.

Takes an aws parameter map with keys:

  • region - AWS region, e.g. 'us-east-1'
  • service - The service, e.g. 'iam' or 'es'
  • access-key - AWS access key
  • secret-key - AWS secret key
  • token - AWS session token in case temporary security credentials are used

Expects the request to define either a Date or an X-Amz-Date header. Use wrap-aws-date middleware to ensure one of these is in place.

Build an clj-http middleware instance that adds the Authorization
header into the outgoing request as specified by AWS Signature
Version 4 Signing Process.

Takes an aws parameter map with keys:
* region - AWS region, e.g. 'us-east-1'
* service - The service, e.g. 'iam' or 'es'
* access-key - AWS access key
* secret-key - AWS secret key
* token - AWS session token in case temporary security credentials are used

Expects the request to define either a Date or an X-Amz-Date header.
Use wrap-aws-date middleware to ensure one of these is in place.
sourceraw docstring

ensure-aws-dateclj

(ensure-aws-date request)
source

signclj

(sign request {:keys [token] :as aws-opts})
source

wrap-aws-dateclj

(wrap-aws-date client)

clj-http middleware that adds an X-Amz-Date header into the request unless the request already defines a standard Date header.

clj-http middleware that adds an X-Amz-Date header into the request
unless the request already defines a standard Date header.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close