nl_tokens: Refreshes credentials using { AWS . STS . assumeRole } or { AWS . STS . getSessionToken } depending on whether an IAM role ARN was passed to the credentials { constructor } .
pl_tokens: function refresh ( callback ) { var self = this ; if ( ! callback ) callback = function ( err ) { if ( err ) throw err ; } ; self . service . config . credentials = self . masterCredentials ; var operation = self . params . RoleArn ? self . service . assumeRole : self . service . getSessionToken ; operation . call ( <mask> . service , function ( err , data ) { if ( ! err ) { self . service . credentialsFrom ( data , self ) ; } callback ( err ) ; } ) ; }