[英]How do I create events for the buckets in s3 using nodejs or from lambda function
I wish to create s3 event from nodejs lambda function to to call another lambda function. 我希望从nodejs lambda函数创建s3事件,以调用另一个lambda函数。
for example-> I have a lambda function test1 that creates s3 bucket and attaches the event to the bucket such that on the occurence of the event it call some different lambda function. 例如->我有一个lambda函数test1,它创建s3存储桶并将事件附加到存储桶,以便在事件发生时它调用某些不同的lambda函数。
Problem -> I can create the lambda function to create an s3 bucket but I am not able to find create event method in AWS S3 documentation to implement this. 问题->我可以创建lambda函数来创建s3存储桶,但是我无法在AWS S3文档中找到create event方法来实现这一点。
It is called BucketNotificationConfiguration in s3. 在s3中称为BucketNotificationConfiguration。
Refer 参考
http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putBucketNotificationConfiguration-property http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putBucketNotificationConfiguration-property
http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTnotification.html http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTnotification.html
http://docs.aws.amazon.com/lambda/latest/dg/with-s3.html http://docs.aws.amazon.com/lambda/latest/dg/with-s3.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.