Two years after the fact, actress Cynthia Nixon said she successfully battled breast cancer.

Nixon, who reprises her role as attorney Miranda Hobbes in the “Sex and the City” movie (which hits theaters on May 30), said she was diagnosed when she was in the off-Broadway show “The Prime of Miss Jean Brodie.”

“I didn’t want to make it public while I was going through it,” Nixon said, according to the New York Daily News. “I didn’t want the paparazzi at the hospital, that kind of thing."

Nixon, who lives in New York City, had a lumpectomy two years ago and then underwent six and a half weeks of radiation.

Her mother Ann also battled the disease twice, said Nixon, who has two children.

"As the daughter of a breast cancer survivor, knowing my personal risk made me more aware and more empowered when I faced my own diagnosis," the 42-year-old actress said in a statement.

The diagnosis of cancer in Nixon’s right breast mirrored the plot of the “Sex and the City" television show, in which Kim Cattrall’s character Samantha Jones successfully battled the disease.

Nixon said she will be a spokeswoman for the Susan G. Komen Breast Cancer Foundation next year.

"I want to help Susan G. Komen for the Cure educate the 1.1 million women around the globe who face a diagnosis each year," she said.

Nixon will serve as an ambassador for the organization and will share her cancer experiences in a series of Web videos.

Click here to read the full story from the Daily News.

Click here to discuss this story.

The Associated Press contributed to this report.