(bucket, cb)
| 49 | } |
| 50 | |
| 51 | function configureBucketVersioning(bucket, cb) { |
| 52 | return s3Client.send(new PutBucketVersioningCommand({ |
| 53 | Bucket: bucket, |
| 54 | VersioningConfiguration: { |
| 55 | Status: 'Enabled', |
| 56 | }, |
| 57 | })) |
| 58 | .then(data => cb(null, data)) |
| 59 | .catch(cb); |
| 60 | } |
| 61 | |
| 62 | function putObjectLockConfiguration(bucket, cb) { |
| 63 | return s3Client.send(new PutObjectLockConfigurationCommand({ |