:doc:`IoT <../../iot>` / Client / update_command

**************
update_command
**************



.. py:method:: IoT.Client.update_command(**kwargs)

  

  Update information about a command or mark a command for deprecation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/UpdateCommand>`_  


  **Request Syntax**
  ::

    response = client.update_command(
        commandId='string',
        displayName='string',
        description='string',
        deprecated=True|False
    )
    
  :type commandId: string
  :param commandId: **[REQUIRED]** 

    The unique identifier of the command to be updated.

    

  
  :type displayName: string
  :param displayName: 

    The new user-friendly name to use in the console for the command.

    

  
  :type description: string
  :param description: 

    A short text description of the command.

    

  
  :type deprecated: boolean
  :param deprecated: 

    A boolean that you can use to specify whether to deprecate a command.

    

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

    
    ::

      {
          'commandId': 'string',
          'displayName': 'string',
          'description': 'string',
          'deprecated': True|False,
          'lastUpdatedAt': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **commandId** *(string) --* 

        The unique identifier of the command.

        
      

      - **displayName** *(string) --* 

        The updated user-friendly display name in the console for the command.

        
      

      - **description** *(string) --* 

        The updated text description of the command.

        
      

      - **deprecated** *(boolean) --* 

        The boolean that indicates whether the command was deprecated.

        
      

      - **lastUpdatedAt** *(datetime) --* 

        The date and time (epoch timestamp in seconds) when the command was last updated.

        
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.ValidationException`

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

  
  *   :py:class:`IoT.Client.exceptions.ConflictException`

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

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

  