"resources" can only be used as a child of a parent HTTP request.
What you're looking for is not supported yet, see https://github.com/gatling/gatling/issues/3783