:doc:`CloudFormation <../../cloudformation>` / Client / deactivate_type

***************
deactivate_type
***************



.. py:method:: CloudFormation.Client.deactivate_type(**kwargs)

  

  Deactivates a public third-party extension, such as a resource or module, or a CloudFormation Hook when you no longer use it.

   

  Deactivating an extension deletes the configuration details that are associated with it. To temporarily disable a CloudFormation Hook instead, you can use `SetTypeConfiguration <https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html>`__.

   

  Once deactivated, an extension can't be used in any CloudFormation operation. This includes stack update operations where the stack template includes the extension, even if no updates are being made to the extension. In addition, deactivated extensions aren't automatically updated if a new version of the extension is released.

   

  To see which extensions are currently activated, use `ListTypes <https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ListTypes.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType>`_  


  **Request Syntax**
  ::

    response = client.deactivate_type(
        TypeName='string',
        Type='RESOURCE'|'MODULE'|'HOOK',
        Arn='string'
    )
    
  :type TypeName: string
  :param TypeName: 

    The type name of the extension in this account and Region. If you specified a type name alias when enabling the extension, use the type name alias.

     

    Conditional: You must specify either ``Arn``, or ``TypeName`` and ``Type``.

    

  
  :type Type: string
  :param Type: 

    The extension type.

     

    Conditional: You must specify either ``Arn``, or ``TypeName`` and ``Type``.

    

  
  :type Arn: string
  :param Arn: 

    The Amazon Resource Name (ARN) for the extension in this account and Region.

     

    Conditional: You must specify either ``Arn``, or ``TypeName`` and ``Type``.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`CloudFormation.Client.exceptions.CFNRegistryException`

  
  *   :py:class:`CloudFormation.Client.exceptions.TypeNotFoundException`

  