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

**************************************
associate_transit_gateway_connect_peer
**************************************



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

  

  Associates a transit gateway Connect peer with a device, and optionally, with a link. If you specify a link, it must be associated with the specified device.

   

  You can only associate transit gateway Connect peers that have been created on a transit gateway that's registered in your global network.

   

  You cannot associate a transit gateway Connect peer with more than one device and link.

  

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


  **Request Syntax**
  ::

    response = client.associate_transit_gateway_connect_peer(
        GlobalNetworkId='string',
        TransitGatewayConnectPeerArn='string',
        DeviceId='string',
        LinkId='string'
    )
    
  :type GlobalNetworkId: string
  :param GlobalNetworkId: **[REQUIRED]** 

    The ID of the global network.

    

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

    The Amazon Resource Name (ARN) of the Connect peer.

    

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

    The ID of the device.

    

  
  :type LinkId: string
  :param LinkId: 

    The ID of the link.

    

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

    
    ::

      {
          'TransitGatewayConnectPeerAssociation': {
              'TransitGatewayConnectPeerArn': 'string',
              'GlobalNetworkId': 'string',
              'DeviceId': 'string',
              'LinkId': 'string',
              'State': 'PENDING'|'AVAILABLE'|'DELETING'|'DELETED'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TransitGatewayConnectPeerAssociation** *(dict) --* 

        The transit gateway Connect peer association.

        
        

        - **TransitGatewayConnectPeerArn** *(string) --* 

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

          
        

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

          The ID of the global network.

          
        

        - **DeviceId** *(string) --* 

          The ID of the device.

          
        

        - **LinkId** *(string) --* 

          The ID of the link.

          
        

        - **State** *(string) --* 

          The state of the association.

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

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

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

  