  def GetVolume(self, volume_id: str) -> 'ebs.AWSVolume':
    """Get a volume attached to the instance by ID.

    Args:
      volume_id (str): The ID of the volume to get.

    Returns:
      AWSVolume: The AWSVolume object.

    Raises:
      ResourceNotFoundError: If volume_id is not found amongst the volumes
          attached to the instance.
    """

    volume = self.ListVolumes().get(volume_id)
    if not volume:
      raise errors.ResourceNotFoundError(
          'Volume {0:s} is not attached to instance {1:s}'.format(
              volume_id, self.instance_id), __name__)
    return volume
Get a volume attached to the instance by ID.

Args:
volume_id (str): The ID of the volume to get.

Returns:
AWSVolume: The AWSVolume object.

Raises:
ResourceNotFoundError: If volume_id is not found amongst the volumes
attached to the instance.
libcloudforensics/providers/aws/internal/ec2.py