Confirms registration of a user and handles the existing alias from a previous user.
/// This exception is thrown when a user tries to confirm the account with an email or
/// phone number that has already been supplied as an alias from a different account.
/// This exception tells user that an account with this email or phone already exists.
///
/// This exception is thrown if the provided code does not match what the server was expecting.
///
/// This exception is thrown if a code has expired.
///
/// This exception is thrown when Amazon Cognito encounters an internal error.
///
/// This exception is thrown when the Amazon Cognito service encounters an invalid AWS
/// Lambda response.
///
/// This exception is thrown when the Amazon Cognito service encounters an invalid parameter.
///
/// This exception is thrown when a user exceeds the limit for a requested AWS resource.
///
/// This exception gets thrown when a user is not authorized.
///
/// This exception is thrown when the Amazon Cognito service cannot find the requested
/// resource.
///
/// This exception gets thrown when the user has made too many failed attempts for a given
/// action (e.g., sign in).
///
/// This exception gets thrown when the user has made too many requests for a given operation.
///
/// This exception gets thrown when the Amazon Cognito service encounters an unexpected
/// exception with the AWS Lambda service.
///
/// This exception gets thrown when the Amazon Cognito service encounters a user validation
/// exception with the AWS Lambda service.
///
/// This exception is thrown when a user is not found.
///