List of usage examples for com.amazonaws.services.ec2.model DeleteSnapshotRequest setSnapshotId
public void setSnapshotId(String snapshotId)
The ID of the EBS snapshot.
From source file:com.carrotgarden.maven.aws.ecc.CarrotElasticCompute.java
License:BSD License
/** unregister EBS snapshot; will fail if snapshot still in use */ public void snapshotDelete(final String snapshotId) throws Exception { final DeleteSnapshotRequest request = new DeleteSnapshotRequest(); request.setSnapshotId(snapshotId); amazonClient.deleteSnapshot(request); logger.info("removed snapshotId = " + snapshotId); }