How would I change a value in a 2D Rigidbody

I would like to change the gravity scale from 1 to -1 for a basic jump script. I’m not asking for a whole script just the single line of code to change the gravity value.

rigidBody2D.gravityScale = -1;