parameters: (cleaner, user_pool_id)
return_statement: return True
docstring: Verifies if a user pool exists. This is should be replaced once cognito supports Waiter objects for user
      pool deletion.
      :param cleaner: A Cleaner object from the main cleanup.py script
      :param user_pool_id: Can be retrieved from the boto3 list_user_pools() with response['UserPools']['Id']
      :return: True if the user pool exists, False if it doesn't exist or an error occurs.
docstring_summary: Verifies if a user pool exists. This is should be replaced once cognito supports Waiter objects for user
      pool deletion.
      :param cleaner: A Cleaner object from the main cleanup.py script
      :param user_pool_id: Can be retrieved from the boto3 list_user_pools() with response['UserPools']['Id']
      :return: True if the user pool exists, False if it doesn't exist or an error occurs.
docstring_tokens: Verifies if a user pool exists . This is should be replaced once cognito supports Waiter objects for user pool deletion . : param cleaner : A Cleaner object from the main cleanup . py script : param user_pool_id : Can be retrieved from the boto3 list_user_pools () with response [ UserPools ] [ Id ] : return : True if the user pool exists False if it doesn t exist or an error occurs .
function: def __user_pool_exists(cleaner, user_pool_id):
      """
      Verifies if a user pool exists. This is should be replaced once cognito supports Waiter objects for user
      pool deletion.
      :param cleaner: A Cleaner object from the main cleanup.py script
      :param user_pool_id: Can be retrieved from the boto3 list_user_pools() with response['UserPools']['Id']
      :return: True if the user pool exists, False if it doesn't exist or an error occurs.
      """
      try:
          cleaner.cognito_idp.describe_user_pool(UserPoolId=user_pool_id)
      except cleaner.cognito_idp.exceptions.ResourceNotFoundException:
          return False
      except ClientError as err:
          print("      ERROR: Unexpected error occurred when checking if user pool {0} exists due to {1}"
                .format(user_pool_id, exception_utils.message(err)))
          return False
      return True
function_tokens: def __user_pool_exists ( cleaner , user_pool_id ) : try : cleaner . cognito_idp . describe_user_pool ( UserPoolId = user_pool_id ) except cleaner . cognito_idp . exceptions . ResourceNotFoundException : return False except ClientError as err : print ( "      ERROR: Unexpected error occurred when checking if user pool {0} exists due to {1}" . format ( user_pool_id , exception_utils . message ( err ) ) ) return False return True