It is called pinto khop, meaning the covered door, connects the palace to the royal park of Aceh Sultanate.
Here is more information
Pinto khop was the connecting gate between the palace and the Taman Ghairah. Gate to the park of royal family, the sultan, the queen, prince and princess. Park development was believed to the of the request of princess Putroe Phang, who were brought to Aceh by Sultan Iskandar Muda after the defeat of Pahang Kingdom.
The object is located inside taman sari area.