:doc:`NetworkManager <../../networkmanager>` / Client / deregister_transit_gateway

**************************
deregister_transit_gateway
**************************



.. py:method:: NetworkManager.Client.deregister_transit_gateway(**kwargs)

  

  Deregisters a transit gateway from your global network. This action does not delete your transit gateway, or modify any of its attachments. This action removes any customer gateway associations.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/DeregisterTransitGateway>`_  


  **Request Syntax**
  ::

    response = client.deregister_transit_gateway(
        GlobalNetworkId='string',
        TransitGatewayArn='string'
    )
    
  :type GlobalNetworkId: string
  :param GlobalNetworkId: **[REQUIRED]** 

    The ID of the global network.

    

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

    The Amazon Resource Name (ARN) of the transit gateway.

    

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

    
    ::

      {
          'TransitGatewayRegistration': {
              'GlobalNetworkId': 'string',
              'TransitGatewayArn': 'string',
              'State': {
                  'Code': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'|'FAILED',
                  'Message': 'string'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TransitGatewayRegistration** *(dict) --* 

        The transit gateway registration information.

        
        

        - **GlobalNetworkId** *(string) --* 

          The ID of the global network.

          
        

        - **TransitGatewayArn** *(string) --* 

          The Amazon Resource Name (ARN) of the transit gateway.

          
        

        - **State** *(dict) --* 

          The state of the transit gateway registration.

          
          

          - **Code** *(string) --* 

            The code for the state reason.

            
          

          - **Message** *(string) --* 

            The message for the state reason.

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

  
  *   :py:class:`NetworkManager.Client.exceptions.AccessDeniedException`

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

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

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

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

  