class_docstr: This handler handles connection and execution of the Amazon Aurora statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Amazon","Aurora","statements","."]
code: def get_database_engine(self):
      try:
          session = boto3.session.Session(
              aws_access_key_id=self.connection_data[
                  "aws_access_key_id"
              ],
              aws_secret_access_key=self.connection_data[
                  "aws_secret_access_key"
              ],
          )
  
          rds = session.client("rds")
  
          response = rds.describe_db_clusters()
  
          return next(
              item
              for item in response
              if item["DBClusterIdentifier"]
              == self.connection_data["host"].split(".")[0]
          )["Engine"]
      except Exception as e:
          logger.error(f"Error connecting to Aurora, {e}!")
          logger.error(
              "If the database engine is not provided as a parameter, please ensure that the credentials for the AWS account are passed in instead!"
          )
  
imports: from typing import Optional
  from collections import OrderedDict
  import boto3
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.base import DatabaseHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.handlers.mysql_handler.mysql_handler import MySQLHandler
  from mindsdb.integrations.handlers.postgres_handler.postgres_handler import PostgresHandler
label_desc: Use image node_id 2 for calling the AuroraHandler obj's underlying member method code with example usage: obj.get_database_engine() and returns: next