class_docstr: Interact with AWS Glue Data Catalog.
  
  Provide thin wrapper around :external+boto3:py:class:`boto3.client("glue") <Glue.Client>`.
  
  Additional arguments (such as ``aws_conn_id``) may be specified and
  are passed down to the underlying AwsBaseHook.
  
  .. seealso::
      - :class:`airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook`
      - `AWS Glue Data Catalog         <https://docs.aws.amazon.com/glue/latest/dg/components-overview.html#data-catalog-intro>`__
docstr: Get a Partition.
  
  .. seealso::
      - :external+boto3:py:meth:`Glue.Client.get_partition`
  
  .. code-block:: python
  
      hook = GlueCatalogHook()
      partition = hook.get_partition("db", "table", ["string"])
      partition["Values"]
  
  :param database_name: Database name
  :param table_name: Database's Table name
  :param partition_values: List of utf-8 strings that define the partition
      Please see official AWS documentation for further information.
      https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-partitions.html#aws-glue-api-catalog-partitions-GetPartition
  :raises: AirflowException
docstr_tok: ["Get","a","Partition",".","..","seealso",":",":","-",":","external+boto3",":","py",":","meth",":","`","Glue.Client.get_partition","`","..","code-block",":",":","python","hook","=","GlueCatalogHook","(",")","partition","=","hook.get_partition","(","``","db","''",",","``","table","''",",","[","``","string","''","]",")","partition","[","``","Values","''","]",":","param","database_name",":","Database","name",":","param","table_name",":","Database","'s","Table","name",":","param","partition_values",":","List","of","utf-8","strings","that","define","the","partition","Please","see","official","AWS","documentation","for","further","information",".","https",":","\/\/docs.aws.amazon.com\/glue\/latest\/dg\/aws-glue-api-catalog-partitions.html","#","aws-glue-api-catalog-partitions-GetPartition",":","raises",":","AirflowException"]
code: def get_partition(
      self,
      database_name: str,
      table_name: str,
      partition_values: list[str],
  ) -> dict:
      """
      Get a Partition.
  
      .. seealso::
          - :external+boto3:py:meth:`Glue.Client.get_partition`
  
      .. code-block:: python
  
          hook = GlueCatalogHook()
          partition = hook.get_partition("db", "table", ["string"])
          partition["Values"]
  
      :param database_name: Database name
      :param table_name: Database's Table name
      :param partition_values: List of utf-8 strings that define the partition
          Please see official AWS documentation for further information.
          https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-partitions.html#aws-glue-api-catalog-partitions-GetPartition
      :raises: AirflowException
      """
      try:
          response = self.get_conn().get_partition(
              DatabaseName=database_name,
              TableName=table_name,
              PartitionValues=partition_values,
          )
          return response["Partition"]
      except ClientError as e:
          self.log.error("Client error: %s", e)
          raise AirflowException(
              "AWS request failed, check logs for more info"
          )
  
file_path: airflow/airflow/providers/amazon/aws/hooks/glue_catalog.py
imports: from __future__ import annotations
  from typing import Any
  from botocore.exceptions import ClientError
  from airflow.exceptions import AirflowException
  from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook
label_desc: Use image node_id 6 for calling the GlueCatalogHook obj's underlying member method code with example usage: obj.get_partition(database_name, table_name, partition_values) and returns: response