code: function extractCredentials(options) {
      if (options.accessKeyId && options.secretAccessKey) {
        options = AWS.util.copy(options);
        options.credentials = new AWS.Credentials(options);
      }
      return options;
    }
docs: Extracts accessKeyId, secretAccessKey and sessionToken
  from a configuration hash.
  
  @api private