def processItem(message, snsTopic, snsRole):
    print('message:')
    print(message)
    messageBody = json.loads(message['Body'])
    bucketName = messageBody['bucketName']
    objectName = messageBody['objectName']
    itemId = messageBody['itemId']
    apiName = objectName.split('/')[0]
    print(('Bucket Name: ' + bucketName))
    print(('Object Name: ' + objectName))
    print(('Task ID: ' + itemId))
    print('starting Rekognition job...')
    jobId = startJob(bucketName, objectName, itemId, snsTopic, snsRole, apiName)
    if jobId:
        print('Started Job with Id: {}'.format(jobId))
    return jobId
def processItem(message, snsTopic, snsRole):
    print('message:')
    print(message)
    messageBody = json.loads(message['Body'])
    bucketName = messageBody['bucketName']
    objectName = messageBody['objectName']
    itemId = messageBody['itemId']
    apiName = objectName.split('/')[0]
    print(('Bucket Name: ' + bucketName))
    print(('Object Name: ' + objectName))
    print(('Task ID: ' + itemId))
    print('starting Rekognition job...')
    jobId = startJob(bucketName, objectName, itemId, snsTopic, snsRole, apiName)
    if jobId:
        print('Started Job with Id: {}'.format(jobId))
    return jobId