for await()

in source/backend/lambda/custom-resources/frontend-event-handler/index.ts [48:62]


  for await (const entry of files) {
    if (entry.type === 'Directory') {
      continue;
    }
    console.log('== uploading ' + entry.path);
    await s3Client
      .upload({
        ACL: 'private',
        Bucket: bucketName,
        Key: entry.path,
        Body: entry,
        ContentType: mime.lookup(entry.path) || 'application/octet-stream',
      })
      .promise();
  }