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

************************
delete_network_acl_entry
************************



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

  

  Deletes the specified ingress or egress entry (rule) from the specified network ACL.

  

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


  **Request Syntax**
  ::

    response = client.delete_network_acl_entry(
        DryRun=True|False,
        NetworkAclId='string',
        RuleNumber=123,
        Egress=True|False
    )
    
  :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 NetworkAclId: string
  :param NetworkAclId: **[REQUIRED]** 

    The ID of the network ACL.

    

  
  :type RuleNumber: integer
  :param RuleNumber: **[REQUIRED]** 

    The rule number of the entry to delete.

    

  
  :type Egress: boolean
  :param Egress: **[REQUIRED]** 

    Indicates whether the rule is an egress rule.

    

  
  
  :returns: None

  **Examples**

  This example deletes ingress rule number 100 from the specified network ACL.
  ::

    response = client.delete_network_acl_entry(
        Egress=True,
        NetworkAclId='acl-5fb85d36',
        RuleNumber=100,
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  