If an API Gateway is created in functions/events, can it be referenced in the resources section?
Yes. See Serverless Resources Docs for details on how the naming conventions work.
functions: hello: handler: my.handler # would be referenced in the Resources section with: Ref: HelloLambdaFunction
Hope it helps.
Got it, I see what you mean, thanks