use of com.amazonaws.services.ec2.model.DeleteSnapshotRequest in project SimianArmy by Netflix.
the class AWSClient method deleteSnapshot.
/**
* {@inheritDoc}
*/
@Override
public void deleteSnapshot(String snapshotId) {
Validate.notEmpty(snapshotId);
LOGGER.info(String.format("Deleting snapshot %s in region %s.", snapshotId, region));
AmazonEC2 ec2Client = ec2Client();
DeleteSnapshotRequest request = new DeleteSnapshotRequest().withSnapshotId(snapshotId);
ec2Client.deleteSnapshot(request);
}
Aggregations