:doc:`mediapackagev2 <../../mediapackagev2>` / Waiter / HarvestJobFinished

******************
HarvestJobFinished
******************



.. py:class:: mediapackagev2.Waiter.HarvestJobFinished

  ::

    
    waiter = client.get_waiter('harvest_job_finished')

  
  

  .. py:method:: wait(**kwargs)

    Polls :py:meth:`mediapackagev2.Client.get_harvest_job` every 2 seconds until a successful state is reached. An error is raised after 60 failed checks.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mediapackagev2-2022-12-25/GetHarvestJob>`_    


    **Request Syntax**
    ::

      waiter.wait(
          ChannelGroupName='string',
          ChannelName='string',
          OriginEndpointName='string',
          HarvestJobName='string',
          WaiterConfig={
              'Delay': 123,
              'MaxAttempts': 123
          }
      )
      
    :type ChannelGroupName: string
    :param ChannelGroupName: **[REQUIRED]** 

      The name of the channel group containing the channel associated with the harvest job.

      

    
    :type ChannelName: string
    :param ChannelName: **[REQUIRED]** 

      The name of the channel associated with the harvest job.

      

    
    :type OriginEndpointName: string
    :param OriginEndpointName: **[REQUIRED]** 

      The name of the origin endpoint associated with the harvest job.

      

    
    :type HarvestJobName: string
    :param HarvestJobName: **[REQUIRED]** 

      The name of the harvest job to retrieve.

      

    
    :type WaiterConfig: dict
    :param WaiterConfig: 

      A dictionary that provides parameters to control waiting behavior.

      

    
      - **Delay** *(integer) --* 

        The amount of time in seconds to wait between attempts. Default: 2

        

      
      - **MaxAttempts** *(integer) --* 

        The maximum number of attempts to be made. Default: 60

        

      
    
    
    :returns: None