Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / test / test-79-npm / aws-sdk / aws-sdk.js
345 bytesRaw
1 | ; |
2 | |
3 | var aws = require('aws-sdk'); |
4 | |
5 | var s3 = new aws.S3({ |
6 | accessKeyId: 'ABRACADABRABRACADABR', |
7 | secretAccessKey: 'TdTdTdTdTdTdTdTdTdTdTdTdTdTdTdTdTdTdTdTd' |
8 | }); |
9 | |
10 | s3.listObjects({ |
11 | Bucket: 'enclosejs' |
12 | }, function (error) { |
13 | if (error) { |
14 | if (error.message.indexOf('does not exist') >= 0) { |
15 | console.log('ok'); |
16 | } |
17 | } |
18 | }); |
19 |
Built with git-ssb-web