Amazon Elastic Compute Cloud

2023/01/30 - Amazon Elastic Compute Cloud - 4 updated api methods

Changes  We add Prefix Lists as a new route destination option for LocalGatewayRoutes. This will allow customers to create routes to Prefix Lists. Prefix List routes will allow customers to group individual CIDR routes with the same target into a single route.

CreateLocalGatewayRoute (updated) Link ¶
Changes (request, response)
Request
{'DestinationPrefixListId': 'string'}
Response
{'Route': {'DestinationPrefixListId': 'string'}}

Creates a static route for the specified local gateway route table. You must specify one of the following targets:

  • LocalGatewayVirtualInterfaceGroupId

  • NetworkInterfaceId

See also: AWS API Documentation

Request Syntax

client.create_local_gateway_route(
    DestinationCidrBlock='string',
    LocalGatewayRouteTableId='string',
    LocalGatewayVirtualInterfaceGroupId='string',
    DryRun=True|False,
    NetworkInterfaceId='string',
    DestinationPrefixListId='string'
)
type DestinationCidrBlock:

string

param DestinationCidrBlock:

The CIDR range used for destination matches. Routing decisions are based on the most specific match.

type LocalGatewayRouteTableId:

string

param LocalGatewayRouteTableId:

[REQUIRED]

The ID of the local gateway route table.

type LocalGatewayVirtualInterfaceGroupId:

string

param LocalGatewayVirtualInterfaceGroupId:

The ID of the virtual interface group.

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

string

param NetworkInterfaceId:

The ID of the network interface.

type DestinationPrefixListId:

string

param DestinationPrefixListId:

The ID of the prefix list. 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.

DeleteLocalGatewayRoute (updated) Link ¶
Changes (request, response)
Request
{'DestinationPrefixListId': 'string'}
Response
{'Route': {'DestinationPrefixListId': 'string'}}

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

See also: AWS API Documentation

Request Syntax

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.

ModifyLocalGatewayRoute (updated) Link ¶
Changes (request, response)
Request
{'DestinationPrefixListId': 'string'}
Response
{'Route': {'DestinationPrefixListId': 'string'}}

Modifies the specified local gateway route.

See also: AWS API Documentation

Request Syntax

client.modify_local_gateway_route(
    DestinationCidrBlock='string',
    LocalGatewayRouteTableId='string',
    LocalGatewayVirtualInterfaceGroupId='string',
    NetworkInterfaceId='string',
    DryRun=True|False,
    DestinationPrefixListId='string'
)
type DestinationCidrBlock:

string

param DestinationCidrBlock:

The CIDR block used for destination matches. The value that you provide must match the CIDR of an existing route in the table.

type LocalGatewayRouteTableId:

string

param LocalGatewayRouteTableId:

[REQUIRED]

The ID of the local gateway route table.

type LocalGatewayVirtualInterfaceGroupId:

string

param LocalGatewayVirtualInterfaceGroupId:

The ID of the virtual interface group.

type NetworkInterfaceId:

string

param NetworkInterfaceId:

The ID of the network interface.

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:

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

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

SearchLocalGatewayRoutes (updated) Link ¶
Changes (response)
{'Routes': {'DestinationPrefixListId': 'string'}}

Searches for routes in the specified local gateway route table.

See also: AWS API Documentation

Request Syntax

client.search_local_gateway_routes(
    LocalGatewayRouteTableId='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxResults=123,
    NextToken='string',
    DryRun=True|False
)
type LocalGatewayRouteTableId:

string

param LocalGatewayRouteTableId:

[REQUIRED]

The ID of the local gateway route table.

type Filters:

list

param Filters:

One or more filters.

  • prefix-list-id - The ID of the prefix list.

  • route-search.exact-match - The exact match of the specified filter.

  • route-search.longest-prefix-match - The longest prefix that matches the route.

  • route-search.subnet-of-match - The routes with a subnet that match the specified CIDR filter.

  • route-search.supernet-of-match - The routes with a CIDR that encompass the CIDR filter. For example, if you have 10.0.1.0/29 and 10.0.1.0/31 routes in your route table and you specify supernet-of-match as 10.0.1.0/30, then the result returns 10.0.1.0/29.

  • state - The state of the route.

  • type - The route type.

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

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

type MaxResults:

integer

param MaxResults:

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

type NextToken:

string

param NextToken:

The token for the next page of results.

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.

rtype:

dict

returns:

Response Syntax

{
    'Routes': [
        {
            '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'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Routes (list) --

      Information about the routes.

      • (dict) --

        Describes a route for a local gateway route table.

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

    • NextToken (string) --

      The token to use to retrieve the next page of results. This value is null when there are no more results to return.