This function returns am_status_t with one of the following values:
If no error is detected.
If the properties, key, or value argument is NULL.
If unable to allocate memory to store the new key/value.