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

************************
register_transit_gateway
************************



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

  

  Registers a transit gateway in your global network. Not all Regions support transit gateways for global networks. For a list of the supported Regions, see `Region Availability <https://docs.aws.amazon.com/network-manager/latest/tgwnm/what-are-global-networks.html#nm-available-regions>`__ in the *Amazon Web Services Transit Gateways for Global Networks User Guide*. The transit gateway can be in any of the supported Amazon Web Services Regions, but it must be owned by the same Amazon Web Services account that owns the global network. You cannot register a transit gateway in more than one global network.

  

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


  **Request Syntax**
  ::

    response = client.register_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) --* 

        Information about the transit gateway registration.

        
        

        - **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`

  