-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SimpleDB functionality doesn't work #60
Comments
In case you fix this before I get around to submitting a pull request, you might find this snippet of code useful: (defn verbosify-map-for-simpledb [m]
(for [[k v] m]
(hash-map :name (name k), :value v))) Feel free to come up with a better name though 😜 |
You sort of have to have the javadocs open when you use amazonica. http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/index.html Basically, any Java methods that take j.u.Collections as args take the corresponding Clojure data structure. So a List or Collection will take a Clojure list, seq, or vector. Maps take Clojure maps. If the Java method takes some kind of aws-sdk Javabean as an argument, then you pass a Clojure map with keys named according to the method names. See the README.md for more details. (sdb/put-attributes :domain-name "domain"
:item-name "my-item"
:attributes [{:name "foo"
:value "bar"}
{:name "baz"
:value 42}]) |
My mistake—thank you for explaining. |
I know it's probably not a surprise that SimpleDB doesn't work —given that you don't include a MVS in the readme— but I figured it might be useful for you to track the task in an issue anyway.
And the error is:
The text was updated successfully, but these errors were encountered: