![](/img/trans.png)
[英]Why can't I see this aws-sdk function from inside my AWS Lambda function?
[英]Where can I see the code for the AWS SDK function?
例如,當我像這樣使用此功能時
// snippet-start:[s3.JavaScript.buckets.createBucket]
// Load the AWS SDK for Node.js
var AWS = require('aws-sdk');
// Set the region
AWS.config.update({region: 'REGION'});
// Create S3 service object
s3 = new AWS.S3({apiVersion: '2006-03-01'});
// Create the parameters for calling createBucket
var bucketParams = {
Bucket : process.argv[2]
};
// call S3 to create the bucket
s3.createBucket(bucketParams, function(err, data) {
if (err) {
console.log("Error", err);
} else {
console.log("Success", data.Location);
}
});
我想看看實現該功能的代碼。 當我查看 AWS 開發工具包代碼時,我沒有比這更深入的了。
在哪里可以查看 AWS 開發工具包函數的代碼?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.