Search in sources :

Example 1 with DeleteRouteTableRequest

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);
}
Also used : DeleteRouteTableRequest(com.amazonaws.services.ec2.model.DeleteRouteTableRequest) DeleteRouteTableResult(com.amazonaws.services.ec2.model.DeleteRouteTableResult)

Aggregations

DeleteRouteTableRequest (com.amazonaws.services.ec2.model.DeleteRouteTableRequest)1 DeleteRouteTableResult (com.amazonaws.services.ec2.model.DeleteRouteTableResult)1