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-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
{: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