const idx = {
	'MOVING': 1,
	'PROVISIONING': 2,
	'RUNNING': 3,
	'STARTING': 4,
	'STOPPING': 5,
	'STOPPED': 6,
	'CREATING_IMAGE': 7,
	'TERMINATING': 8,
	'TERMINATED': 9
};

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