'Creates new filesystem with selected name'

def create_file_system(self, name, performance_mode):

    changed = False
    state = self.get_file_system_state(name)
    if (state in [self.STATE_DELETING, self.STATE_DELETED]):
        wait_for((lambda : self.get_file_system_state(name)), self.STATE_DELETED)
        self.connection.create_file_system(CreationToken=name, PerformanceMode=performance_mode)
        changed = True
    wait_for((lambda : self.get_file_system_state(name)), self.STATE_AVAILABLE, self.wait_timeout)
    return changed
