:doc:`EC2 <../../ec2>` / Client / disassociate_transit_gateway_policy_table

*****************************************
disassociate_transit_gateway_policy_table
*****************************************



.. py:method:: EC2.Client.disassociate_transit_gateway_policy_table(**kwargs)

  

  Removes the association between an an attachment and a policy table.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateTransitGatewayPolicyTable>`_  


  **Request Syntax**
  ::

    response = client.disassociate_transit_gateway_policy_table(
        TransitGatewayPolicyTableId='string',
        TransitGatewayAttachmentId='string',
        DryRun=True|False
    )
    
  :type TransitGatewayPolicyTableId: string
  :param TransitGatewayPolicyTableId: **[REQUIRED]** 

    The ID of the disassociated policy table.

    

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

    The ID of the transit gateway attachment to disassociate from the policy table.

    

  
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

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

    
    ::

      {
          'Association': {
              'TransitGatewayPolicyTableId': 'string',
              'TransitGatewayAttachmentId': 'string',
              'ResourceId': 'string',
              'ResourceType': 'vpc'|'vpn'|'vpn-concentrator'|'direct-connect-gateway'|'connect'|'peering'|'tgw-peering'|'network-function',
              'State': 'associating'|'associated'|'disassociating'|'disassociated'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Association** *(dict) --* 

        Returns details about the transit gateway policy table disassociation.

        
        

        - **TransitGatewayPolicyTableId** *(string) --* 

          The ID of the transit gateway policy table.

          
        

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

          The ID of the transit gateway attachment.

          
        

        - **ResourceId** *(string) --* 

          The resource ID of the transit gateway attachment.

          
        

        - **ResourceType** *(string) --* 

          The resource type for the transit gateway policy table association.

          
        

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

          The state of the transit gateway policy table association.

          
    
  