@Override public void execute(Context context) throws Exception { logger.info("delete route table, routeTableId={}", resource.id); for (RouteTableAssociation association : resource.remoteRouteTable.getAssociations()) { AWS.vpc.ec2.disassociateRouteTable(new DisassociateRouteTableRequest().withAssociationId(association.getRouteTableAssociationId())); } AWS.vpc.ec2.deleteRouteTable(new DeleteRouteTableRequest().withRouteTableId(resource.remoteRouteTable.getRouteTableId())); }
@Override public void disassociateRouteTable(DisassociateRouteTableRequest disassociateRouteTableRequest) throws AmazonServiceException, AmazonClientException { throw new UnsupportedOperationException("Not supported in mock"); }
@Override public void delete(DisassociateRouteTableRequest request) { delete(request, null); }
@Override public void delete(DisassociateRouteTableRequest request, ResultCapture<Void> extractor) { resource.performAction("Delete", request, extractor); }
@Override public void disassociateRouteTable(DisassociateRouteTableRequest request) { disassociateRouteTable(request, null); }
@Override public void disassociateRouteTable(DisassociateRouteTableRequest request, ResultCapture<Void> extractor) { service.performAction("DisassociateRouteTable", request, extractor); }
/** * Performs the <code>DisassociateRouteTable</code> action. * * <p> * * @see DisassociateRouteTableRequest */ void disassociateRouteTable(DisassociateRouteTableRequest request);
/** * Performs the <code>DisassociateRouteTable</code> action and use a * ResultCapture to retrieve the low-level client response. * * <p> * * @see DisassociateRouteTableRequest */ void disassociateRouteTable(DisassociateRouteTableRequest request, ResultCapture<Void> extractor);
/** * Performs the <code>Delete</code> action. * * <p> * The following request parameters will be populated from the data of this * <code>RouteTableAssociation</code> resource, and any conflicting * parameter value set in the request will be overridden: * <ul> * <li> * <b><code>AssociationId</code></b> * - mapped from the <code>Id</code> identifier. * </li> * </ul> * * <p> * * @see DisassociateRouteTableRequest */ void delete(DisassociateRouteTableRequest request);
/** * Performs the <code>Delete</code> action and use a ResultCapture to * retrieve the low-level client response. * * <p> * The following request parameters will be populated from the data of this * <code>RouteTableAssociation</code> resource, and any conflicting * parameter value set in the request will be overridden: * <ul> * <li> * <b><code>AssociationId</code></b> * - mapped from the <code>Id</code> identifier. * </li> * </ul> * * <p> * * @see DisassociateRouteTableRequest */ void delete(DisassociateRouteTableRequest request, ResultCapture<Void> extractor);