class_docstr: Interact with AWS Database Migration Service (DMS).
  
  Provide thin wrapper around
  :external+boto3:py:class:`boto3.client("dms") <DatabaseMigrationService.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`
class_docstr_tok: ["Interact","with","AWS","Database","Migration","Service","(","DMS",")",".","Provide","thin","wrapper","around",":","external+boto3",":","py",":","class",":","`","boto3.client","(","``","dms","''",")","<","DatabaseMigrationService.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","`"]
docstr: Wait for replication task to reach status; supported statuses: deleted, ready, running, stopped.
  
  :param status: Status to wait for
  :param replication_task_arn: Replication task ARN
docstr_tok: ["Wait","for","replication","task","to","reach","status",";","supported","statuses",":","deleted",",","ready",",","running",",","stopped",".",":","param","status",":","Status","to","wait","for",":","param","replication_task_arn",":","Replication","task","ARN"]
code: def wait_for_task_status(
      self, replication_task_arn: str, status: DmsTaskWaiterStatus
  ):
      """
      Wait for replication task to reach status; supported statuses: deleted, ready, running, stopped.
  
      :param status: Status to wait for
      :param replication_task_arn: Replication task ARN
      """
      if not isinstance(status, DmsTaskWaiterStatus):
          raise TypeError(
              "Status must be an instance of DmsTaskWaiterStatus"
          )
  
      dms_client = self.get_conn()
      waiter = dms_client.get_waiter(f"replication_task_{status.value}")
      waiter.wait(
          Filters=[
              {
                  "Name": "replication-task-arn",
                  "Values": [
                      replication_task_arn,
                  ],
              },
          ],
          WithoutSettings=True,
      )
  
file_path: airflow/airflow/providers/amazon/aws/hooks/dms.py
imports: from __future__ import annotations
  import json
  from enum import Enum
  from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook
label_desc: Use image node_id 9 for calling the DmsHook obj's underlying member method code with example usage: obj.wait_for_task_status(replication_task_arn, status) without return types