Liking cljdoc? Tell your friends :D

cloudformation-templating

Clojars Project CljDoc Badge

A library for creating CloudFormation templates.

Importing existing templates

JSON templates can be converted to EDN (or Clojure) using this function:

(require '[cheshire.core :as json]
         '[com.rpl.specter :as sp]
         '[io.staticweb.cloudformation-templating :as ct])

(defn import-from-json [^String s]
  (let [m (json/parse-string s true)]
    (sp/transform (sp/walker ct/invalid-keyword?) ct/full-name m)))

Can you improve this documentation?Edit on GitHub

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

× close