A special kind of object. Always has a next method that returns an object with two attributes:
let foo = iterator.next()
foo.done // true or false
foo.value // returned value
| const AWS = require('aws-sdk'); | |
| const cloudfront = new AWS.CloudFront({ apiVersion: '2017-03-25' }); | |
| const distributionId = process.env.distributionId; | |
| exports.handler = (event, context, callback) => { | |
| let promiseArr = event.Records.map(obj => { | |
| return new Promise((resolve, reject) => { | |
| let key = '/' + obj.s3.object.key; | |
| let timestamp = String(new Date().getTime()); |
This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].
When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes