Let X be a random variable.
Consider X ~ F. It can be read as X has distribution F.
What is distribution referring here? Consider the following interpretations
1) If X is continuous, then F is a probability density function and if X is discrete then F is a probability mass function.
2) F is a cumulative distribution function.
Which of the above is correct? If not, what is the distribution the notation referring to?
Suppose that $X$ is a real-valued random variable. There are some probability textbooks which use the term "distribution of $X$" to refer to the cumulative distribution function (CDF) of $X$. In these books, the expression $X \sim F$ often means that $F$ is the CDF of $X$. I suspect this is the case in your example.
However, I think the most standard definition of "the distribution of $X$" is the probability measure $\mu$ on $\mathbb R$ induced by $X$: $$ \mu(A) = P(X \in A) $$ for any measurable set $A \subset \mathbb R$. For example, this definition is used in Folland.