class_docstr: Poll the state of the Batch Job until it reaches a terminal state; fails if the job fails.
  
  .. seealso::
      For more information on how to use this sensor, take a look at the guide:
      :ref:`howto/sensor:BatchSensor`
  
  :param job_id: Batch job_id to check the state for
  :param aws_conn_id: aws connection to use, defaults to 'aws_default'
  :param region_name: aws region name associated with the client
  :param deferrable: Run sensor in the deferrable mode.
  :param poke_interval: polling period in seconds to check for the status of the job.
  :param max_retries: Number of times to poll for job state before
      returning the current state.
class_docstr_tok: ["Poll","the","state","of","the","Batch","Job","until","it","reaches","a","terminal","state",";","fails","if","the","job","fails",".","..","seealso",":",":","For","more","information","on","how","to","use","this","sensor",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/sensor",":","BatchSensor","`",":","param","job_id",":","Batch","job_id","to","check","the","state","for",":","param","aws_conn_id",":","aws","connection","to","use",",","defaults","to","'aws_default'",":","param","region_name",":","aws","region","name","associated","with","the","client",":","param","deferrable",":","Run","sensor","in","the","deferrable","mode",".",":","param","poke_interval",":","polling","period","in","seconds","to","check","for","the","status","of","the","job",".",":","param","max_retries",":","Number","of","times","to","poll","for","job","state","before","returning","the","current","state","."]
docstr: Create and return a BatchClientHook.
docstr_tok: ["Create","and","return","a","BatchClientHook","."]
code: def get_hook(self) -> BatchClientHook:
      """Create and return a BatchClientHook."""
      return self.hook
  
imports: from __future__ import annotations
  from datetime import timedelta
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, Sequence
  from deprecated import deprecated
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning, AirflowSkipException
  from airflow.providers.amazon.aws.hooks.batch_client import BatchClientHook
  from airflow.providers.amazon.aws.triggers.batch import BatchJobTrigger
  from airflow.sensors.base import BaseSensorOperator
label_desc: Use image node_id 5 for calling the BatchSensor obj's underlying member method code with example usage: obj.get_hook() and returns: self