EC2 / Paginator / DescribeVirtualEdgeNetworkGatewayRoutes

DescribeVirtualEdgeNetworkGatewayRoutes

class EC2.Paginator.DescribeVirtualEdgeNetworkGatewayRoutes
paginator = client.get_paginator('describe_virtual_edge_network_gateway_routes')
paginate(**kwargs)

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

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:

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

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

    • mtu – The maximum transmission unit (MTU) of the route ( 1500 | 8500).

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

    • reachability-scope – A reachability scope of the route ( internet | aws-global-network).

    • route-preference – The preference used to choose between routes to the same destination, where a lower value wins.

    • target-type – The target type of the route ( blackhole | internet | subnet).

    • target.ipv4-address – The IPv4 address of a route target.

    • target.ipv6-address – The IPv6 address of a route target.

    • target.secondary-interface-id – The ID of the secondary interface of a route target.

    • target.secondary-subnet-id – The ID of the secondary subnet of a route target.

    • target.weight – The weight of a route target.

    • virtual-edge-network-gateway-route-table-id – The ID of the virtual edge network gateway route table.

    • (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

{
    'VirtualEdgeNetworkGatewayRoutes': [
        {
            'VirtualEdgeNetworkGatewayRouteTableId': 'string',
            'Ipv4DestinationCidrBlock': 'string',
            'Ipv6DestinationCidrBlock': 'string',
            'TargetType': 'blackhole'|'internet'|'subnet',
            'Targets': [
                {
                    'SecondarySubnetId': 'string',
                    'SecondaryInterfaceId': 'string',
                    'Ipv4Address': 'string',
                    'Ipv6Address': 'string',
                    'Weight': 123
                },
            ],
            'ReachabilityScopes': [
                'internet'|'aws-global-network',
            ],
            'RoutePreference': 123,
            'Mtu': 123,
            'OwnerId': 'string'
        },
    ],

}

Response Structure

  • (dict) –

    • VirtualEdgeNetworkGatewayRoutes (list) –

      Information about the routes.

      • (dict) –

        Describes a static route in a virtual edge network gateway route table.

        • VirtualEdgeNetworkGatewayRouteTableId (string) –

          The ID of the virtual edge network gateway route table.

        • Ipv4DestinationCidrBlock (string) –

          The IPv4 CIDR block used for the destination match.

        • Ipv6DestinationCidrBlock (string) –

          The IPv6 CIDR block used for the destination match.

        • TargetType (string) –

          The type of target for the route, which determines where the gateway forwards matching traffic. Valid values:

          • blackhole – Drops matching traffic.

          • internet – Forwards matching traffic to the internet.

          • subnet – Forwards matching traffic to a secondary subnet.

        • Targets (list) –

          The targets that the route forwards traffic to. A target is one of the following:

          • A blackhole, which drops the traffic.

          • An IP address.

          • A secondary subnet.

          • The internet.

          • (dict) –

            Describes a target of a virtual edge network gateway route.

            • SecondarySubnetId (string) –

              The ID of the secondary subnet.

            • SecondaryInterfaceId (string) –

              The ID of the secondary interface.

            • Ipv4Address (string) –

              The IPv4 address of the target.

            • Ipv6Address (string) –

              The IPv6 address of the target.

            • Weight (integer) –

              The weight of the target.

        • ReachabilityScopes (list) –

          The reachability scopes of the route, which determine where the route is advertised.

          • (string) –

        • RoutePreference (integer) –

          The route preference. The gateway uses the most specific route that matches a destination. When routes for the same destination conflict, the route with the lowest route preference takes precedence. The default is 1 for static routes and 100 for routes learned from route server peers.

        • Mtu (integer) –

          The maximum transmission unit (MTU), in bytes, for the route. The MTU is 1500 for routes with the target type internet, and 8500 for other routes.

        • OwnerId (string) –

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