EC2 / Paginator / DescribeVirtualEdgeNetworkGatewayRouteTableRib

DescribeVirtualEdgeNetworkGatewayRouteTableRib

class EC2.Paginator.DescribeVirtualEdgeNetworkGatewayRouteTableRib
paginator = client.get_paginator('describe_virtual_edge_network_gateway_route_table_rib')
paginate(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    VirtualEdgeNetworkGatewayRouteTableId='string',
    DryRun=True|False,
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • VirtualEdgeNetworkGatewayRouteTableId (string) –

    [REQUIRED]

    The ID of the virtual edge network gateway route table.

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

    • announcement-target – The highest target to which the route is announced ( local | aws-global-network | internet).

    • border-scope – The border scope of the route ( region | continental | global).

    • filtered – Indicates whether the route is filtered out of the FIB ( true | false).

    • filtered-reason – The reason that the route is filtered out of the FIB ( another-route-preferred | bogon-or-martian | dampened | internal-error | invalid-prepend-value | invalid-scope-community-value | prefix-length-exceeded | prefix-limit-exceeded | prefix-not-allowed | private-prefix-requires-community | route-propagation-disabled | transit-violation).

    • internet-scope – The internet scope of the route ( city).

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

    • origin – The origin of the route ( create-virtual-edge-network-gateway-route | route-server-peer-endpoint-1 | route-server-peer-endpoint-2).

    • prepend-count – The number of AS path prepends for the route.

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

    • status – The status of the route ( active | mismatch).

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

    • (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': [
        {
            'Ipv4DestinationCidrBlock': 'string',
            'Ipv6DestinationCidrBlock': 'string',
            'TargetType': 'blackhole'|'internet'|'subnet',
            'Targets': [
                {
                    'SecondarySubnetId': 'string',
                    'SecondaryInterfaceId': 'string',
                    'Ipv4Address': 'string',
                    'Ipv6Address': 'string',
                    'Weight': 123
                },
            ],
            'AnnouncementTarget': 'local'|'aws-global-network'|'internet',
            'BorderScope': 'region'|'continental'|'global',
            'InternetScope': 'city',
            'PrependCount': 123,
            'RoutePreference': 123,
            'Origin': 'create-virtual-edge-network-gateway-route'|'route-server-peer-endpoint-1'|'route-server-peer-endpoint-2',
            'Status': 'active'|'mismatch',
            'AsPathLength': 123,
            'Med': 123,
            'LocalPref': 123,
            'Mtu': 123,
            'Filtered': True|False,
            'FilteredReason': 'route-propagation-disabled'|'prefix-not-allowed'|'bogon-or-martian'|'prefix-length-exceeded'|'prefix-limit-exceeded'|'transit-violation'|'dampened'|'another-route-preferred'|'private-prefix-requires-community'|'invalid-prepend-value'|'invalid-scope-community-value'|'internal-error'
        },
    ],

}

Response Structure

  • (dict) –

    • VirtualEdgeNetworkGatewayRoutes (list) –

      Information about the routes in the RIB.

      • (dict) –

        Describes a route in the routing information base (RIB) of a 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.

        • AnnouncementTarget (string) –

          The highest target to which the route is announced. local announces the route within the virtual edge network only. aws-global-network also announces it to the Amazon Web Services global network. internet also announces it to the internet.

        • BorderScope (string) –

          The scope of the route announcement on the Amazon Web Services network. region announces it within the edge location’s Amazon Web Services Region. continental announces it within the edge location’s continent. global announces it worldwide.

        • InternetScope (string) –

          The scope of the route announcement on the internet. city announces it to the internet from the edge location’s metro only.

        • PrependCount (integer) –

          The number of times the AS path is prepended for the route, from 1 to 3. The value is 0 for blackhole routes.

        • RoutePreference (integer) –

          The route preference of the route.

        • Origin (string) –

          The origin of the route. Valid values:

          • create-virtual-edge-network-gateway-route – A static route.

          • route-server-peer-endpoint-1 – A route learned from a route server peer on route server endpoint 1.

          • route-server-peer-endpoint-2 – A route learned from a route server peer on route server endpoint 2.

        • Status (string) –

          The status of a route learned from a route server peer. Valid values:

          • active – Both route server endpoints report the same route.

          • mismatch – Only one route server endpoint reports the route, or the endpoints report different versions of it.

          Static routes don’t have a status.

        • AsPathLength (integer) –

          The length of the BGP AS path of the route.

        • Med (integer) –

          The BGP multi-exit discriminator (MED) of the route.

        • LocalPref (integer) –

          The BGP local preference of the route.

        • Mtu (integer) –

          The maximum transmission unit (MTU), in bytes, for the route.

        • Filtered (boolean) –

          Indicates whether the route is filtered out of the forwarding information base (FIB).

        • FilteredReason (string) –

          The reason that the route is filtered out of the FIB.

          • another-route-preferred – BGP best-path selection prefers another route for the same prefix (higher local preference, shorter AS path, or lower MED).

          • bogon-or-martian – The route is for a bogon or martian prefix (an address range that shouldn’t appear on the public internet) and is announced beyond the virtual edge network. Bogon prefixes include 0.0.0.0/0, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.2.0/24, 192.168.0.0/16, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/0, 2001:db8::/32, and fc00::/7.

          • dampened – The route is suppressed because it was repeatedly announced and withdrawn.

          • internal-error – The route is filtered because of an internal error.

          • invalid-prepend-value – The AS path prepend value is invalid. The prepend value must be between 1 and 3.

          • invalid-scope-community-value – The route carries a community with ASN 16509 and an unsupported function or value, or a public prefix doesn’t carry an announcement community. The supported announcement communities are 16509:1:1000000, 16509:1:2100000, 16509:1:2200000, 16509:1:2300000, 16509:1:3110000, 16509:1:3210000, and 16509:1:3310000.

          • prefix-length-exceeded – The route is more specific than the maximum prefix length of the route filter or the maximum prefix length for its announcement target. The maximum prefix length for IPv4 is /32 for local, /28 for aws-global-network, and /24 for internet. For IPv6, the maximum prefix length is /128 for local, /64 for aws-global-network, and /48 for internet.

          • prefix-limit-exceeded – The secondary network has reached the maximum number of routes learned from route server peers for the announcement target.

          • prefix-not-allowed – The route is for a public prefix that isn’t covered by an allowed advertisement of the virtual edge network gateway.

          • private-prefix-requires-community – The route is for a private prefix and isn’t limited to the virtual edge network. Private prefixes are 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, and 100.64.0.0/10 for IPv4, and unique local address prefixes in fd00::/8 outside fd00::/16 for IPv6. A private prefix must carry the NO_EXPORT community, the blackhole community 65535:666, or the community 16509:1:1000000.

          • route-propagation-disabled – Route propagation is disabled for the route table association.

          • transit-violation – A prefix learned from Direct Connect is re-advertised beyond the virtual edge network.