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

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

Introduction

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

Prototype

DeleteSnapshotResult

Source Link

Usage

From source file:jp.primecloud.auto.aws.typica.EucaEc2Client.java

License:Open Source License

@Override
public DeleteSnapshotResult deleteSnapshot(DeleteSnapshotRequest deleteSnapshotRequest) {
    try {//from w w  w .ja  va2s.  c  o m
        jec2.deleteSnapshot(deleteSnapshotRequest.getSnapshotId());
        return new DeleteSnapshotResult();
    } catch (EC2Exception e) {
        throw new AmazonClientException(e);
    }
}