:doc:`NetworkFirewall <../../network-firewall>` / Client / delete_network_firewall_transit_gateway_attachment

**************************************************
delete_network_firewall_transit_gateway_attachment
**************************************************



.. py:method:: NetworkFirewall.Client.delete_network_firewall_transit_gateway_attachment(**kwargs)

  

  Deletes a transit gateway attachment from a Network Firewall. Either the firewall owner or the transit gateway owner can delete the attachment.

   

  .. warning::

     

    After you delete a transit gateway attachment, traffic will no longer flow through the firewall endpoints.

     

   

  After you initiate the delete operation, use  DescribeFirewall to monitor the deletion status.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/network-firewall-2020-11-12/DeleteNetworkFirewallTransitGatewayAttachment>`_  


  **Request Syntax**
  ::

    response = client.delete_network_firewall_transit_gateway_attachment(
        TransitGatewayAttachmentId='string'
    )
    
  :type TransitGatewayAttachmentId: string
  :param TransitGatewayAttachmentId: **[REQUIRED]** 

    Required. The unique identifier of the transit gateway attachment to delete.

    

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

    
    ::

      {
          'TransitGatewayAttachmentId': 'string',
          'TransitGatewayAttachmentStatus': 'CREATING'|'DELETING'|'DELETED'|'FAILED'|'ERROR'|'READY'|'PENDING_ACCEPTANCE'|'REJECTING'|'REJECTED'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TransitGatewayAttachmentId** *(string) --* 

        The ID of the transit gateway attachment that was deleted.

        
      

      - **TransitGatewayAttachmentStatus** *(string) --* 

        The current status of the transit gateway attachment deletion process.

         

        Valid values are:

         

        
        * ``CREATING`` - The attachment is being created
         
        * ``DELETING`` - The attachment is being deleted
         
        * ``DELETED`` - The attachment has been deleted
         
        * ``FAILED`` - The attachment creation has failed and cannot be recovered
         
        * ``ERROR`` - The attachment is in an error state that might be recoverable
         
        * ``READY`` - The attachment is active and processing traffic
         
        * ``PENDING_ACCEPTANCE`` - The attachment is waiting to be accepted
         
        * ``REJECTING`` - The attachment is in the process of being rejected
         
        * ``REJECTED`` - The attachment has been rejected
        

        
  
  **Exceptions**
  
  *   :py:class:`NetworkFirewall.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`NetworkFirewall.Client.exceptions.InternalServerError`

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

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

  