Welcome to HCM.
You can go to swim after a couple of days of amniocentesis
However, since you are pregnant, it is not advisable to go for swimming or to over exert your self, as there is a possibility of threatened abortion
If at all it's a must that you should go swimming, take care not to over exert your self.
Wish you all the best.