List of usage examples for com.amazonaws.services.ec2.model TerminateInstancesRequest TerminateInstancesRequest
public TerminateInstancesRequest()
From source file:ro.cosu.vampires.server.resources.ec2.EC2Resource.java
License:Open Source License
@Override public void onStop() throws Exception { TerminateInstancesRequest terminateInstancesRequest = new TerminateInstancesRequest() .withInstanceIds(instanceId); TerminateInstancesResult terminateInstancesResult = amazonEC2Client .terminateInstances(terminateInstancesRequest); LOG.debug("terminate instance {}", terminateInstancesResult.toString()); }