:doc:`Snowball <../../snowball>` / Client / update_job_shipment_state

*************************
update_job_shipment_state
*************************



.. py:method:: Snowball.Client.update_job_shipment_state(**kwargs)

  

  Updates the state when a shipment state changes to a different state.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/UpdateJobShipmentState>`_  


  **Request Syntax**
  ::

    response = client.update_job_shipment_state(
        JobId='string',
        ShipmentState='RECEIVED'|'RETURNED'
    )
    
  :type JobId: string
  :param JobId: **[REQUIRED]** 

    The job ID of the job whose shipment date you want to update, for example ``JID123e4567-e89b-12d3-a456-426655440000``.

    

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

    The state of a device when it is being shipped.

     

    Set to ``RECEIVED`` when the device arrives at your location.

     

    Set to ``RETURNED`` when you have returned the device to Amazon Web Services.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Snowball.Client.exceptions.InvalidResourceException`

  
  *   :py:class:`Snowball.Client.exceptions.InvalidJobStateException`

  