Example usage for com.amazonaws.services.ec2.model TerminateInstancesRequest TerminateInstancesRequest

List of usage examples for com.amazonaws.services.ec2.model TerminateInstancesRequest TerminateInstancesRequest

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2.model TerminateInstancesRequest TerminateInstancesRequest.

Prototype

public TerminateInstancesRequest() 

Source Link

Document

Default constructor for TerminateInstancesRequest object.

Usage

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());
}