ellisms commented on code in PR #34807:
URL: https://github.com/apache/airflow/pull/34807#discussion_r1352807827


##########
airflow/providers/amazon/aws/hooks/glue.py:
##########
@@ -422,3 +422,55 @@ def create_or_update_glue_job(self) -> str | None:
             self.conn.create_job(**config)
 
         return self.job_name
+
+
+class GlueDataBrewHook(AwsBaseHook):
+    """
+    Interact with AWS DataBrew.
+
+    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`
+    """
+
+    TERMINAL_STATES = ["STOPPED", "SUCCEEDED", "FAILED", "TIMEOUT"]
+    SUCCESS_STATES = ["SUCCEEDED"]
+    FAILURE_STATES = ["FAILED", "TIMEOUT"]
+    RUNNING_STATES = ["STARTING", "RUNNING", "STOPPING"]
+
+    def __init__(self, *args, **kwargs):
+        kwargs["client_type"] = "databrew"
+        super().__init__(*args, **kwargs)
+
+    def job_completion(self, job_name: str, run_id: str, delay: int = 10, 
maxAttempts: int = 60) -> str:

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to