Skip to main content

route_server_endpoints

Creates, updates, deletes, gets or lists a route_server_endpoints resource.

Overview

Nameroute_server_endpoints
TypeResource
Idaws.ec2.route_server_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
eni_addressstringThe IP address of the Elastic network interface for the endpoint.
eni_idstringThe ID of the Elastic network interface for the endpoint.
failure_reasonstringThe reason for any failure in endpoint creation or operation.
route_server_endpoint_idstringThe unique identifier of the route server endpoint.
route_server_idstringThe ID of the route server associated with this endpoint.
statestringThe current state of the route server endpoint.
subnet_idstringThe ID of the subnet to place the route server endpoint into.
tagsstringAny tags assigned to the route server endpoint.
vpc_idstringThe ID of the VPC containing the endpoint.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_route_server_endpointsselectregionRouteServerEndpointId, NextToken, MaxResults, Filter, DryRunDescribes one or more route server endpoints. A route server endpoint is an Amazon Web Services-managed component inside a subnet that facilitates BGP (Border Gateway Protocol) connections between your route server and your BGP peers. For more information see Dynamic routing in your VPC with VPC Route Server in the Amazon VPC User Guide.
create_route_server_endpointinsertRouteServerId, SubnetId, regionClientToken, DryRun, TagSpecificationCreates a new endpoint for a route server in a specified subnet. A route server endpoint is an Amazon Web Services-managed component inside a subnet that facilitates BGP (Border Gateway Protocol) connections between your route server and your BGP peers. For more information see Dynamic routing in your VPC with VPC Route Server in the Amazon VPC User Guide.
delete_route_server_endpointdeleteRouteServerEndpointId, regionDryRunDeletes the specified route server endpoint. A route server endpoint is an Amazon Web Services-managed component inside a subnet that facilitates BGP (Border Gateway Protocol) connections between your route server and your BGP peers.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
RouteServerEndpointIdstringThe ID of the route server endpoint to delete.
RouteServerIdstringThe ID of the route server for which to create an endpoint.
SubnetIdstringThe ID of the subnet in which to create the route server endpoint.
regionstringAWS region (default: us-east-1)
ClientTokenstringUnique, case-sensitive identifier to ensure idempotency of the request.
DryRunbooleanA check for 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.
FilterarrayOne or more filters to apply to the describe request.
MaxResultsintegerThe maximum number of results to return with a single call.
NextTokenstringThe token for the next page of results.
RouteServerEndpointIdarrayThe IDs of the route server endpoints to describe.
TagSpecificationarrayThe tags to apply to the route server endpoint during creation.

SELECT examples

Describes one or more route server endpoints. A route server endpoint is an Amazon Web Services-managed component inside a subnet that facilitates BGP (Border Gateway Protocol) connections between your route server and your BGP peers. For more information see Dynamic routing in your VPC with VPC Route Server in the Amazon VPC User Guide.

SELECT
eni_address,
eni_id,
failure_reason,
route_server_endpoint_id,
route_server_id,
state,
subnet_id,
tags,
vpc_id
FROM aws.ec2.route_server_endpoints
WHERE region = '{{ region }}' -- required
AND RouteServerEndpointId = '{{ RouteServerEndpointId }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND Filter = '{{ Filter }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Creates a new endpoint for a route server in a specified subnet. A route server endpoint is an Amazon Web Services-managed component inside a subnet that facilitates BGP (Border Gateway Protocol) connections between your route server and your BGP peers. For more information see Dynamic routing in your VPC with VPC Route Server in the Amazon VPC User Guide.

INSERT INTO aws.ec2.route_server_endpoints (
RouteServerId,
SubnetId,
region,
ClientToken,
DryRun,
TagSpecification
)
SELECT
'{{ RouteServerId }}',
'{{ SubnetId }}',
'{{ region }}',
'{{ ClientToken }}',
'{{ DryRun }}',
'{{ TagSpecification }}'
RETURNING
eni_address,
eni_id,
failure_reason,
route_server_endpoint_id,
route_server_id,
state,
subnet_id,
tags,
vpc_id
;

DELETE examples

Deletes the specified route server endpoint. A route server endpoint is an Amazon Web Services-managed component inside a subnet that facilitates BGP (Border Gateway Protocol) connections between your route server and your BGP peers.

DELETE FROM aws.ec2.route_server_endpoints
WHERE RouteServerEndpointId = '{{ RouteServerEndpointId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;