pub struct RouteTableClient { /* private fields */ }Expand description
Calls RouteTableService.
Route tables: where a subnet’s traffic leaves the VPC. A table holds
routes (RouteService), and applies to the subnets that a route table
association names it for (RouteTableAssociationService).
Implementations§
Source§impl RouteTableClient
impl RouteTableClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of RouteTableService that sends its calls through client.
Sourcepub fn service(&self) -> &Service
pub fn service(&self) -> &Service
The endpoint the client sends its calls to, which also serves the operations its methods answer with.
Sourcepub async fn get_route_table(
&self,
request: GetRouteTableRequest,
) -> Result<RouteTable, Error>
pub async fn get_route_table( &self, request: GetRouteTableRequest, ) -> Result<RouteTable, Error>
Returns a route table.
Sourcepub async fn list_route_tables(
&self,
request: ListRouteTablesRequest,
) -> Result<ListRouteTablesResponse, Error>
pub async fn list_route_tables( &self, request: ListRouteTablesRequest, ) -> Result<ListRouteTablesResponse, Error>
Lists the route tables in a region, oldest first.
Sourcepub fn all_route_tables(
&self,
request: ListRouteTablesRequest,
) -> Pages<RouteTable>
pub fn all_route_tables( &self, request: ListRouteTablesRequest, ) -> Pages<RouteTable>
Returns everything list_route_tables lists from request’s page on, fetching the next page as the stream reaches it. A page that fails ends the stream with its error.
Sourcepub async fn create_route_table(
&self,
request: CreateRouteTableRequest,
) -> Result<Operation<RouteTable>, Error>
pub async fn create_route_table( &self, request: CreateRouteTableRequest, ) -> Result<Operation<RouteTable>, Error>
Creates a route table in a VPC, with the VPC’s local routes and no other. The operation is done once the route table is recorded.
It answers with an operation to wait on: Operation::wait returns the RouteTable once the change is done.
Sourcepub async fn update_route_table(
&self,
request: UpdateRouteTableRequest,
) -> Result<Operation<RouteTable>, Error>
pub async fn update_route_table( &self, request: UpdateRouteTableRequest, ) -> Result<Operation<RouteTable>, Error>
Changes a route table’s tags. The operation is done once the change is recorded.
It answers with an operation to wait on: Operation::wait returns the RouteTable once the change is done.
Sourcepub async fn delete_route_table(
&self,
request: DeleteRouteTableRequest,
) -> Result<Operation<Empty>, Error>
pub async fn delete_route_table( &self, request: DeleteRouteTableRequest, ) -> Result<Operation<Empty>, Error>
Deletes a route table with its routes. Refused for a main route table, which goes with its VPC, and while a route table association names the table. The operation is done once the change is recorded; the network applies it within seconds.
It answers with an operation to wait on, which has no result: Operation::wait returns once the change is done.