Where can i find serverless.yml format info

hi, i am not able to find what the format of serverless.yml is i mean how and which steps execute.
what are special concepts like query thing that see it gets resource id etc.
I am not sure if its specific to aws’s cloudfront or sls.