code: function needsToLoadEC2IAMRoleCredentials() {
  		if (!accessKey || !secretKey) return true;
  		if (credentialsExpiration === null) return false;
  		return (credentialsExpiration.getTime() - Date.now()) < CREDENTIALS_EXPIRATION_THRESHOLD;
  	}
docs: Helper function that returns `true` if getting the security credentials from the metadata service is needed or `false` otherwise.
  
  @method needsToLoadEC2IAMRoleCredentials
  @private