:doc:`mediapackagev2 <../../mediapackagev2>` / Client / reset_channel_state

*******************
reset_channel_state
*******************



.. py:method:: mediapackagev2.Client.reset_channel_state(**kwargs)

  

  Resetting the channel can help to clear errors from misconfigurations in the encoder. A reset refreshes the ingest stream and removes previous content.

   

  Be sure to stop the encoder before you reset the channel, and wait at least 30 seconds before you restart the encoder.

  

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


  **Request Syntax**
  ::

    response = client.reset_channel_state(
        ChannelGroupName='string',
        ChannelName='string'
    )
    
  :type ChannelGroupName: string
  :param ChannelGroupName: **[REQUIRED]** 

    The name of the channel group that contains the channel that you are resetting.

    

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

    The name of the channel that you are resetting.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ChannelGroupName': 'string',
          'ChannelName': 'string',
          'Arn': 'string',
          'ResetAt': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ChannelGroupName** *(string) --* 

        The name of the channel group that contains the channel that you just reset.

        
      

      - **ChannelName** *(string) --* 

        The name of the channel that you just reset.

        
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) associated with the channel that you just reset.

        
      

      - **ResetAt** *(datetime) --* 

        The time that the channel was last reset.

        
  
  **Exceptions**
  
  *   :py:class:`mediapackagev2.Client.exceptions.ConflictException`

  
  *   :py:class:`mediapackagev2.Client.exceptions.ThrottlingException`

  
  *   :py:class:`mediapackagev2.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`mediapackagev2.Client.exceptions.InternalServerException`

  
  *   :py:class:`mediapackagev2.Client.exceptions.ValidationException`

  
  *   :py:class:`mediapackagev2.Client.exceptions.ResourceNotFoundException`

  