  def GetVolumeById(self,
                    volume_id: str,
                    region: Optional[str] = None) -> AWSVolume:
    """Get a volume from an AWS account by its ID.

    Args:
      volume_id (str): The volume id.
      region (str): Optional. The region to look the volume in.
          If none provided, the default_region associated to the AWSAccount
          object will be used.

    Returns:
      AWSVolume: An Amazon EC2 Volume object.

    Raises:
      ResourceNotFoundError: If the volume does not exist.
    """

    volumes = self.ListVolumes(region=region)
    volume = volumes.get(volume_id)
    if not volume:
      raise errors.ResourceNotFoundError(
          'Volume {0:s} was not found in AWS account'.format(volume_id),
          __name__)
    return volume
Get a volume from an AWS account by its ID.

Args:
volume_id (str): The volume id.
region (str): Optional. The region to look the volume in.
If none provided, the default_region associated to the AWSAccount
object will be used.

Returns:
AWSVolume: An Amazon EC2 Volume object.

Raises:
ResourceNotFoundError: If the volume does not exist.
libcloudforensics/providers/aws/internal/ebs.py