use of com.amazonaws.services.ec2.model.DeleteRouteTableRequest in project photon-model by vmware.
the class AWSNetworkClient method deleteRouteTable.
/**
* Delete a route table
*/
public DeferredResult<Void> deleteRouteTable(String routeTableId) {
DeleteRouteTableRequest req = new DeleteRouteTableRequest().withRouteTableId(routeTableId);
String message = "Delete AWS Route Table with id [" + routeTableId + "].";
AWSDeferredResultAsyncHandler<DeleteRouteTableRequest, DeleteRouteTableResult> handler = new AWSDeferredResultAsyncHandler<>(this.service, message);
this.client.deleteRouteTableAsync(req, handler);
return handler.toDeferredResult().thenApply(ignore -> null);
}
Aggregations