Skip to main content

route_server_associations

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

Overview

Nameroute_server_associations
TypeResource
Idaws.ec2.route_server_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
route_server_idstringThe ID of the associated route server.
statestringThe current state of the association.
vpc_idstringThe ID of the associated VPC.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_route_server_associationsselectRouteServerId, regionDryRunGets information about the associations for the specified route server. A route server association is the connection established between a route server and a VPC. For more information see Dynamic routing in your VPC with VPC Route Server in the Amazon VPC User Guide.

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
RouteServerIdstringThe ID of the route server for which to get association information.
regionstringAWS region (default: us-east-1)
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.

SELECT examples

Gets information about the associations for the specified route server. A route server association is the connection established between a route server and a VPC. For more information see Dynamic routing in your VPC with VPC Route Server in the Amazon VPC User Guide.

SELECT
route_server_id,
state,
vpc_id
FROM aws.ec2.route_server_associations
WHERE RouteServerId = '{{ RouteServerId }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
;