Super Metroid style camera

I would love to figure out how to set a camera “volumn” that it must stay inside of… I also need this for our 2d game world map. I don’t want the camera go beyond our world map bounds…

Any luck on this ??