'Returns the requested IOs per second for this profile or None if you
cannot request a rate of IOs per second for this volume type. This will
be iops_per_size_gib * size_gib unless this value exceeds max_iops.
:param int size_gib: The size in GiB of the volume being created.
:returns: The requested IOs per second for this profile for a disk of
the given size.'

def requested_iops(self, size_gib):

    if (self.iops_per_size_gib is not None):
        if (self.max_iops is not None):
            return min((size_gib * self.iops_per_size_gib), self.max_iops)
        return (size_gib * self.iops_per_size_gib)
    return None
