RR
Size: a a a
RR
RR
AK
RR
AK
RU
ss
ss
/* The following example returns notification configuration set on a bucket. */
var params = {
Bucket: "examplebucket"
};
s3.getBucketNotification(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
QueueConfiguration: {
Event: "s3:ObjectCreated:Put",
Events: [
"s3:ObjectCreated:Put"
],
Id: "MDQ2OGQ4NDEtOTBmNi00YTM4LTk0NzYtZDIwN2I3NWQ1NjIx",
Queue: "arn:aws:sqs:us-east-1:acct-id:S3ObjectCreatedEventQueue"
},
TopicConfiguration: {
Event: "s3:ObjectCreated:Copy",
Events: [
"s3:ObjectCreated:Copy"
],
Id: "YTVkMWEzZGUtNTY1NS00ZmE2LWJjYjktMmRlY2QwODFkNTJi",
Topic: "arn:aws:sns:us-east-1:acct-id:S3ObjectCreatedEventTopic"
}
}
*/
});
Вот
документацияss
DZ
s3
key provides information about the bucket and object involved in the event. The object key name value is URL encoded. For example, "red flower.jpg" becomes "red+flower.jpg" (Amazon S3 returns "application/x-www-form-urlencoded
" as the content type in the response).MS
S
AP
KT
KT
AV
AV
VM