Hello S.,
If 'AAAA' is not a real map (without any `=>`, or `*->` within), you can change it to an object, as:
@startuml
left to right direction
object "AAA A" as AAAA {
ffff
----
gggg
}
map "CCC C" as CCCC {
oooo => pppp
ssss => tttt
=> uuuu
=> yyyy
}
AAAA::fff => CCCC::oooo
AAAA::gggg => CCCC::ssss
@enduml
And see the expected result:

If that can help,
Regards.