EC2 / Paginator / DescribeSecondaryNetworkAclEntries

DescribeSecondaryNetworkAclEntries

class EC2.Paginator.DescribeSecondaryNetworkAclEntries
paginator = client.get_paginator('describe_secondary_network_acl_entries')
paginate(**kwargs)

Creates an iterator that will paginate through responses from EC2.Client.describe_secondary_network_acl_entries().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DryRun=True|False,
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • DryRun (boolean) – 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.

  • Filters (list) –

    The filters. The following are the possible values:

    • action – The action for the entry ( allow | deny).

    • direction – The direction of traffic for the entry ( ingress | egress).

    • ipv4-cidr-block – The IPv4 CIDR block of the entry.

    • ipv6-cidr-block – The IPv6 CIDR block of the entry.

    • owner-id – The ID of the Amazon Web Services account that owns the secondary network ACL.

    • port-range.from – The first port in the port range of the entry.

    • port-range.to – The last port in the port range of the entry.

    • protocol – The protocol number of the entry.

    • rule-number – The rule number of the entry.

    • secondary-network-acl-id – The ID of the secondary network ACL.

    • (dict) –

      A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

      If you specify multiple filters, the filters are joined with an AND, and the request returns only results that match all of the specified filters.

      For more information, see List and filter using the CLI and API in the Amazon EC2 User Guide.

      • Name (string) –

        The name of the filter. Filter names are case-sensitive.

      • Values (list) –

        The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

        • (string) –

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'SecondaryNetworkAclEntries': [
        {
            'SecondaryNetworkAclId': 'string',
            'RuleNumber': 123,
            'Protocol': 123,
            'PortRange': {
                'From': 123,
                'To': 123
            },
            'IcmpTypeCode': {
                'Code': 123,
                'Type': 123
            },
            'Ipv4CidrBlock': 'string',
            'Ipv6CidrBlock': 'string',
            'Direction': 'ingress'|'egress',
            'Action': 'allow'|'deny',
            'OwnerId': 'string'
        },
    ],

}

Response Structure

  • (dict) –

    • SecondaryNetworkAclEntries (list) –

      Information about the secondary network ACL entries.

      • (dict) –

        Describes an entry in a secondary network ACL.

        • SecondaryNetworkAclId (string) –

          The ID of the secondary network ACL.

        • RuleNumber (integer) –

          The rule number of the entry. Entries are evaluated in order, starting with the lowest rule number.

        • Protocol (integer) –

          The protocol number that the entry applies to.

        • PortRange (dict) –

          The range of ports that the entry applies to. For a protocol other than TCP (protocol 6) or UDP (protocol 17), from and to are both -1.

          • From (integer) –

            The first port in the range, or -1 (all ports) for a protocol other than TCP (protocol 6) or UDP (protocol 17).

          • To (integer) –

            The last port in the range, or -1 (all ports) for a protocol other than TCP (protocol 6) or UDP (protocol 17).

        • IcmpTypeCode (dict) –

          The ICMP type and code that the entry applies to. Returned only for entries that specify the ICMP (protocol 1) or ICMPv6 (protocol 58) protocol.

          • Code (integer) –

            The ICMP code. -1 indicates all codes for the ICMP type.

          • Type (integer) –

            The ICMP type. -1 indicates all types.

        • Ipv4CidrBlock (string) –

          The IPv4 CIDR block that the entry matches.

        • Ipv6CidrBlock (string) –

          The IPv6 CIDR block that the entry matches.

        • Direction (string) –

          The direction of traffic that the entry applies to.

        • Action (string) –

          The action to take on traffic that matches the entry.

        • OwnerId (string) –

          The ID of the Amazon Web Services account that owns the secondary network ACL.