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

**************************
delete_local_gateway_route
**************************



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

  

  Deletes the specified route from the specified local gateway route table.

  

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


  **Request Syntax**
  ::

    response = client.delete_local_gateway_route(
        DestinationCidrBlock='string',
        LocalGatewayRouteTableId='string',
        DryRun=True|False,
        DestinationPrefixListId='string'
    )
    
  :type DestinationCidrBlock: string
  :param DestinationCidrBlock: 

    The CIDR range for the route. This must match the CIDR for the route exactly.

    

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

    The ID of the local gateway route 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``.

    

  
  :type DestinationPrefixListId: string
  :param DestinationPrefixListId: 

    Use a prefix list in place of ``DestinationCidrBlock``. You cannot use ``DestinationPrefixListId`` and ``DestinationCidrBlock`` in the same request.

    

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

    
    ::

      {
          'Route': {
              'DestinationCidrBlock': 'string',
              'LocalGatewayVirtualInterfaceGroupId': 'string',
              'Type': 'static'|'propagated',
              'State': 'pending'|'active'|'blackhole'|'deleting'|'deleted',
              'LocalGatewayRouteTableId': 'string',
              'LocalGatewayRouteTableArn': 'string',
              'OwnerId': 'string',
              'SubnetId': 'string',
              'CoipPoolId': 'string',
              'NetworkInterfaceId': 'string',
              'DestinationPrefixListId': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Route** *(dict) --* 

        Information about the route.

        
        

        - **DestinationCidrBlock** *(string) --* 

          The CIDR block used for destination matches.

          
        

        - **LocalGatewayVirtualInterfaceGroupId** *(string) --* 

          The ID of the virtual interface group.

          
        

        - **Type** *(string) --* 

          The route type.

          
        

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

          The state of the route.

          
        

        - **LocalGatewayRouteTableId** *(string) --* 

          The ID of the local gateway route table.

          
        

        - **LocalGatewayRouteTableArn** *(string) --* 

          The Amazon Resource Name (ARN) of the local gateway route table.

          
        

        - **OwnerId** *(string) --* 

          The ID of the Amazon Web Services account that owns the local gateway route.

          
        

        - **SubnetId** *(string) --* 

          The ID of the subnet.

          
        

        - **CoipPoolId** *(string) --* 

          The ID of the customer-owned address pool.

          
        

        - **NetworkInterfaceId** *(string) --* 

          The ID of the network interface.

          
        

        - **DestinationPrefixListId** *(string) --* 

          The ID of the prefix list.

          
    
  