const idx = {
	'PROVISIONING': 1,
	'RESTORING': 2,
	'AVAILABLE': 3,
	'TERMINATING': 4,
	'TERMINATED': 5,
	'FAULTY': 6
};

return typeof idx[value] === 'undefined' ? 0 : idx[value];