CDC deleted the expression "to produce immunity to a specific disease" from the vaccine definition, but still defines:
"Immunity: Protection from an infectious disease. If you are immune to a disease, you can be exposed to it without becoming infected."