class_docstr: Poll the state of the job run until it reaches a terminal state; fails if the job run fails.
  
  .. seealso::
      For more information on how to use this sensor, take a look at the guide:
      :ref:`howto/sensor:EmrServerlessJobSensor`
  
  :param application_id: application_id to check the state of
  :param job_run_id: job_run_id to check the state of
  :param target_states: a set of states to wait for, defaults to 'SUCCESS'
  :param aws_conn_id: aws connection to use, defaults to 'aws_default'
class_docstr_tok: ["Poll","the","state","of","the","job","run","until","it","reaches","a","terminal","state",";","fails","if","the","job","run","fails",".","..","seealso",":",":","For","more","information","on","how","to","use","this","sensor",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/sensor",":","EmrServerlessJobSensor","`",":","param","application_id",":","application_id","to","check","the","state","of",":","param","job_run_id",":","job_run_id","to","check","the","state","of",":","param","target_states",":","a","set","of","states","to","wait","for",",","defaults","to","'SUCCESS'",":","param","aws_conn_id",":","aws","connection","to","use",",","defaults","to","'aws_default","'"]
code: def __init__(
      self,
      *,
      application_id: str,
      job_run_id: str,
      target_states: set
      | frozenset = frozenset(EmrServerlessHook.JOB_SUCCESS_STATES),
      aws_conn_id: str = "aws_default",
      **kwargs: Any,
  ) -> None:
      self.aws_conn_id = aws_conn_id
      self.target_states = target_states
      self.application_id = application_id
      self.job_run_id = job_run_id
      super().__init__(**kwargs)
  
imports: from __future__ import annotations
  from datetime import timedelta
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, Iterable, Sequence
  from deprecated import deprecated
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning, AirflowSkipException
  from airflow.providers.amazon.aws.hooks.emr import EmrContainerHook, EmrHook, EmrServerlessHook
  from airflow.providers.amazon.aws.links.emr import EmrClusterLink, EmrLogsLink, get_log_uri
  from airflow.providers.amazon.aws.triggers.emr import EmrContainerTrigger, EmrStepSensorTrigger, EmrTerminateJobFlowTrigger
  from airflow.sensors.base import BaseSensorOperator
label_desc: Use image node_id 1 to create a new EmrServerlessJobSensor object from inherited base classes: BaseSensorOperator with example: obj = EmrServerlessJobSensor()