'alert when an IAM user has a login profile and API access via access keys.
An account should be used Either for API access OR for console access, but maybe not both.'

def check_loginprofile_plus_akeys(self, iamuser_item):

    if (not iamuser_item.config.get('LoginProfile', None)):
        return
    akeys = iamuser_item.config.get('AccessKeys', {})
    for akey in akeys:
        if (('Status' in akey) and (akey['Status'] == 'Active')):
            self.add_issue(1, 'User    with    password    login    and    API    access.', iamuser_item)
            return
