After chatting with a colleague who read this and showed me the magic of
trace I think the problem with amazonica.aws.
s3/set-bucket-tagging-configuration is that I need
{:tag-sets [{:tag {"Formation" "notlive"}}]}
i.e. I need to know how to call setTag(string key, string value) which
takes two args through the Amazonica. I've only dealt with single args
before.
On Wednesday, 20 July 2016 14:53:11 UTC+1, Gareth Rogers wrote:
>
> Hi
>
> Has any one had any success using either
> amazonica.aws.s3/set-bucket-notification-configuration or
> amazonica.aws.s3/set-bucket-tagging-configuration?
>
> I've got
>
> (amazonica.aws.s3/set-bucket-notification-configuration
> "my.bucket.name"
> {"my-custom-event-name"
> {"<sqs-arn>" ;; This replaced with the ARN of an SQS queue I've created
> "ObjectCreatedByPut" ;; [S3Event/ObjectCreatedByPut] ;;
> "s3:ObjectCreated:Put" <-- tried all three
> ;; :filter "/_SUCCESS"
> }})
>
> and
>
> (amazonica.aws.s3/set-bucket-tagging-configuration
> "my.bucket.name"
> {:tag-sets [{"Formation" "notlive"}]})
>
> Both of those are wrapped with amazonica.core/with-credential which I've
> omitted.
>
> The call to amazonica.aws.s3/set-bucket-notification-configuration returns
> nil. I guess this means it's getting converted to a valid call but the S3
> API is rejecting it silently? Anyone know what it should look like?
>
> The call to amazonica.aws.s3/set-bucket-tagging-configuration is throwing:
>
> Unhandled com.amazonaws.services.s3.model.AmazonS3Exception
> The XML you provided was not well-formed or did not validate
> against our published schema (Service: Amazon S3; Status Code: 400;
> Error Code: MalformedXML; Request ID: )
>
> I can't figure out what might be wrong there either. I've tried a few
> variations on the tag sets but it either doesn't run because it can't find
> an appropriate function or gives the XML error.
>
> Any pointers would be appreciated.
>
> Thanks
> Gareth
>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.