List of usage examples for com.amazonaws.services.ec2.model CreateSnapshotResult CreateSnapshotResult
CreateSnapshotResult
From source file:jp.primecloud.auto.aws.typica.EucaEc2Client.java
License:Open Source License
@Override public CreateSnapshotResult createSnapshot(CreateSnapshotRequest createSnapshotRequest) { try {// w w w .j a v a 2 s . com SnapshotInfo info = jec2.createSnapshot(createSnapshotRequest.getVolumeId()); Snapshot snapshot = new SnapshotConverter().convert(info); return new CreateSnapshotResult().withSnapshot(snapshot); } catch (EC2Exception e) { throw new AmazonClientException(e); } }