:doc:`ConnectCampaignService <../../connectcampaigns>` / Client / get_campaign_state

******************
get_campaign_state
******************



.. py:method:: ConnectCampaignService.Client.get_campaign_state(**kwargs)

  

  Get state of a campaign for the specified Amazon Connect account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connectcampaigns-2021-01-30/GetCampaignState>`_  


  **Request Syntax**
  ::

    response = client.get_campaign_state(
        id='string'
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

    Identifier representing a Campaign

    

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

    
    ::

      {
          'state': 'Initialized'|'Running'|'Paused'|'Stopped'|'Failed'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      GetCampaignStateResponse

      
      

      - **state** *(string) --* 

        State of a campaign

        
  
  **Exceptions**
  
  *   :py:class:`ConnectCampaignService.Client.exceptions.InternalServerException`

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

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

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

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

  