This function returns am_status_t with one of the following values:
If the entry was successfully inserted into the map.
If either the map, key, or value argument is NULL.
If unable to allocate memory for value and if necessary the key.