Building the Menus for
the Player Account Cloud Gem

To build the menus, use the code for CloudGemPlayerAccountRequestBus and
CloudGemPlayerAccountNotificationBusHandler in the
dev\Gems\CloudGemPlayerAccount\Code\Include\CloudGemPlayerAccount\CloudGemPlayerAccountBus.h
file. Keep in mind the following points:

To return the user name for the currently logged-in user, call the
GetCurrentUser function, which has a corresponding
OnGetCurrentUserComplete event. This function and EBus event are not part
of the Amazon Cognito user pool API but are needed for most calls to the API.

The GetCurrentUser function also loads the returned user's credentials
and caches them inside the gem's system component. As a result, subsequent calls to
GetCurrentUser are faster.

The act of signing in also caches the user's credentials
inside the gem's system component.