const idx = {
	'PROVISIONING': 1,
	'AVAILABLE': 2,
	'STOPPING': 3,
	'STOPPED': 4,
	'STARTING': 5,
	'TERMINATING': 6,
	'TERMINATED': 7,
	'RESTORE_IN_PROGRESS': 8,
	'RESTORE_FAILED': 9,
	'BACKUP_IN_PROGRESS': 10,
	'SCALE_IN_PROGRESS': 11,
	'AVAILABLE_NEEDS_ATTENTION': 12,
	'UPDATING': 13,
	'MAINTENANCE_IN_PROGRESS': 14,
	'RESTARTING': 15,
	'RECREATING': 16,
	'ROLE_CHANGE_IN_PROGRESS': 17,
	'UPGRADING': 18,
	'UNAVAILABLE': 19,
	'INACCESSIBLE': 20,
	'STANDBY': 21
};

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