When using automation for an AWS VM provision, what variable is the ami-id in?

I am trying to customize a provisioning script and am currently selecting the name of an instance from the Request Info -> Catalog menu when creating a Catalog Item. I can retrieve other properties from the automation script, but cannot get the ami-id from this. What variable is this stored in?

Thank you!

Have you looked at the ems_ref variable of the vm?