@classmethod
def from_bdms(cls, bdms):
    """Returns a list of BlockDevicePayload objects based on the passed
        BlockDeviceMappingList.
        """
    payloads = []
    for bdm in bdms:
        if bdm.volume_id is not None:
            payloads.append(cls(bdm))
    return payloads
