Search in sources :

Example 1 with DeleteSnapshotRequest

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);
}
Also used : AmazonEC2(com.amazonaws.services.ec2.AmazonEC2)

Aggregations

AmazonEC2 (com.amazonaws.services.ec2.AmazonEC2)1