lib/config.js
function extractCredentials(options) {
    if (options.accessKeyId && options.secretAccessKey) {
      options = AWS.util.copy(options);
      options.credentials = new AWS.Credentials(options);
    }
    return options;
  }
function extractCredentials(options) {
    if (options.accessKeyId && options.secretAccessKey) {
      options = AWS.util.copy(options);
      options.credentials = new AWS.Credentials(options);
    }
    return options;
  }
function extractCredentials ( options ) { if ( options . accessKeyId && options . secretAccessKey ) { options = AWS . util . copy ( options ) ; options . credentials = new AWS . Credentials ( options ) ; } return options ; }
Extracts accessKeyId, secretAccessKey and sessionToken
from a configuration hash.

@api private
Extracts accessKeyId secretAccessKey and sessionToken from a configuration hash .