node.js - How to change the AWS node client user agent? -
i'm using node aws-sdk
package , need send custom user agent in s3 requests in order identify process in console log.
i've seen method in java sdk can't see similar in node package.
is there way easily?
after browsing in source code found undocumented option set user agent: customuseragent
const options = { customuseragent: 'my-process-name' }; const client = new aws.s3(options);
Comments
Post a Comment