This function returns am_status_t with one of the following values:
If a map was successfully created.
If unable to allocate memory for the map object.
If the map_ptr parameter is NULL.