Java (SDK V2) Code Samples for Amazon Cognito - AWS Code Sample