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

@method needsToLoadEC2IAMRoleCredentials
@private
Helper function that returns true if getting the security credentials from the metadata service is needed or false otherwise .