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

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

Introduction

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

Prototype

CreateSnapshotResult

Source Link

Usage

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