'Returns state of filesystem by EFS id/name'

def get_file_system_state(self, name, file_system_id=None):

    info = first_or_default(iterate_all('FileSystems', self.connection.describe_file_systems, CreationToken=name, FileSystemId=file_system_id))
    return ((info and info['LifeCycleState']) or self.STATE_DELETED)
