I don't believe its possible to get macOS (or atleast wasn't) onto an AMI in anyway.
They're Apple after all, so they can build macOS to boot from a standard environment - UEFI, kernel that doesn't check the copy prevention string on SMBIOS, etc.
Us, mere mortals, are more restricted, as we don't have the keys of the kingdom.