def severity_mapping(severity: int) -> int:
    """
    Maps AWS finding severity to demisto severity
    Args:
        severity: AWS finding severity

    Returns:
        Demisto severity
    """
    if 1 <= severity <= 30:
        demisto_severity = 1
    elif 31 <= severity <= 70:
        demisto_severity = 2
    elif 71 <= severity <= 100:
        demisto_severity = 3
    else:
        demisto_severity = 0

    return demisto_severity