In aws node v2 sdk we can update the credentials after initiating a client
var AWS = require('aws-sdk');
var S3 = AWS.S3();
AWS.config.update({
accessKeyId: 'AccessKeyId',
secretAccessKey: 'SecretAccessKey',
sessionToken: 'SessionToken'
});
Can we update the credentials after initiating the client in v3 sdk
var s3 = require('@aws-sdk/client-s3')
var s3Client = s3.S3Client();
// now update the credentials like in sdk v2