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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -