trendmicro / cloudone-filestorage-plugins

Trend Micro Cloud One File Storage Security plugins reference code.
https://cloudone.trendmicro.com
Apache License 2.0
42 stars 51 forks source link

Fix: update aws-sdk and add logging info #177

Closed trend-william-hung closed 5 months ago

trend-william-hung commented 5 months ago

Update Full Scan Plugin FilterFunction

[Deprecated] Since it is same with #176

Change Summary

All changes are in FilterFunction lambda

sdk S3.getObject reference: https://github.com/aws/aws-sdk-js-v3/issues/1877#issuecomment-1287546956

  1. update sdk use of S3Client to S3
  2. update client.send(new GetObjectCommand... to S3.getObject({...
  3. add more log info in Filter function

image

PR Checklist

Other Notes