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

********************
deprecate_thing_type
********************



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

  

  Deprecates a thing type. You can not associate new things with deprecated thing type.

   

  Requires permission to access the `DeprecateThingType <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

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


  **Request Syntax**
  ::

    response = client.deprecate_thing_type(
        thingTypeName='string',
        undoDeprecate=True|False
    )
    
  :type thingTypeName: string
  :param thingTypeName: **[REQUIRED]** 

    The name of the thing type to deprecate.

    

  
  :type undoDeprecate: boolean
  :param undoDeprecate: 

    Whether to undeprecate a deprecated thing type. If **true**, the thing type will not be deprecated anymore and you can associate it with things.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      The output for the DeprecateThingType operation.

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

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

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

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

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

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

  