Files: d456a6cc8589489e558e6164750474ed2cfc961e / 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