:doc:`GroundStation <../../groundstation>` / Client / cancel_contact

**************
cancel_contact
**************



.. py:method:: GroundStation.Client.cancel_contact(**kwargs)

  

  Cancels or stops a contact with a specified contact ID based on its position in the `contact lifecycle <https://docs.aws.amazon.com/ground-station/latest/ug/contacts.lifecycle.html>`__.

   

  For contacts that:

   

  
  * Have yet to start, the contact will be cancelled.
   
  * Have started but have yet to finish, the contact will be stopped.
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/CancelContact>`_  


  **Request Syntax**
  ::

    response = client.cancel_contact(
        contactId='string'
    )
    
  :type contactId: string
  :param contactId: **[REQUIRED]** 

    UUID of a contact.

    

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

    
    ::

      {
          'contactId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **contactId** *(string) --* 

        UUID of a contact.

        
  
  **Exceptions**
  
  *   :py:class:`GroundStation.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`GroundStation.Client.exceptions.DependencyException`

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

  