title: How to check whether a snapshot with ID is in use of AWS AMI's in Boto?
body: <p>I am getting the following Error while deleting snapshots. I wanted to delete Snapshot which are currently not in use by My AWS AMI's and Other Instances.. as well .I tried but got this error..</p>
  
  <pre><code>Traceback (most recent call last):
  &lt;path to error file&gt;
  EC2ResponseError: EC2ResponseError: 400 Bad Request
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;Response&gt;&lt;Errors&gt;&lt;Error&gt;&lt;Code&gt;InvalidSnapshot.InUse&lt;/Code&gt;&lt;Message&gt;The snapshot snap-xxxxxxxx is currently in use by ami-xxxxxxxx&lt;/Message&gt;&lt;/Error&gt;&lt;/Errors&gt;&lt;RequestID&gt;bbe55333-4acf-4ca7-9aa3-49307b189ca3&lt;/RequestID&gt;&lt;/Response&gt;
  </code></pre>