This is a proof of concept script for adding Flavor Mappings in bulk for vRealize Automation 8.x
Run the script, specifying the name/IP of your vRA 8.x server, username and password:
add-flavormappings.ps1 -server <vRAServer> -username <username> -password <password>
The script references the file cloudInstanceTypes.csv, which has a mapping of friendly flavor names (Small, Medium, Large, etc) to cloud-specific values. The included file has values for vSphere, AWS, Azure and GCP.
vRealize Automation 8.1 API Programming Guide