This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-23
Channels
- # announcements (3)
- # aws (2)
- # babashka (31)
- # beginners (14)
- # calva (14)
- # cider (4)
- # clj-kondo (1)
- # clojure (24)
- # clojure-europe (18)
- # clojure-gamedev (4)
- # clojure-nl (3)
- # clojure-norway (23)
- # clojurescript (24)
- # core-typed (23)
- # data-science (9)
- # datomic (1)
- # emacs (15)
- # events (4)
- # gratitude (3)
- # introduce-yourself (1)
- # leiningen (9)
- # lsp (65)
- # membrane (39)
- # music (1)
- # nbb (1)
- # obb (8)
- # reitit (17)
- # releases (1)
- # tree-sitter (2)
- # vim (28)
- # xtdb (3)
working the aws-api makes me understand why there is an iteration function in the core library now.
β 3
π
1
βΊοΈ 1
basically i'm doing a lot of this:
(iteration (fn [token]
(aws/invoke (aws/client {:api :codepipeline :region "us-east-2" :provider caws/provider})
{:op :ListPipelines :request {:nextToken token}}))
:kf :nextToken
:vf :pipelines)
(take 3 pipe)
;; => ([{:name "cac-training-Pipeline-BATF3SECTRPT",
;; :version 1,
;; :created #inst "2022-10-21T04:16:15.000-00:00",
;; :updated #inst "2022-10-21T04:16:15.000-00:00"}
;; {:name
;; "cacapi-training-DeploymentPipeline-1A5UTBE4M0MM0-Pipeline-1EK0CVNJQP4TL",
;; :version 2,
;; :created #inst "2022-10-21T03:46:36.000-00:00",
;; :updated #inst "2022-10-21T20:21:33.000-00:00"}])