-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. update cdn event trigger demo 2. fix oss and cdn spec definition 3. add compatibility for lowcase spec declaration of oss trigger
- Loading branch information
1 parent
d0d3251
commit 30bbeae
Showing
10 changed files
with
129 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
exports.handler = function(event, context, callback) { | ||
var eventObj = JSON.parse(event.toString()); | ||
console.log("event: " + event); | ||
console.log('context: ', JSON.stringify(context)); | ||
console.log('eventName: '+ eventObj.events[0].eventName); | ||
console.log('eventVersion: '+ eventObj.events[0].eventVersion); | ||
console.log('eventSource: '+ eventObj.events[0].eventSource); | ||
console.log('region: '+ eventObj.events[0].region); | ||
console.log('eventParameter: '+ JSON.stringify(eventObj.events[0].eventParameter,null,4)) | ||
// cdn trigger 事件格式请参考 https://help.aliyun.com/document_detail/73333.html | ||
callback(null, 'hello cdn_trigger'); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.