When does infant immunity develop?

Immediately. It starts immediately after birth, but then continues up to ages 6-8 years of age.