source/lambda/iot-dr-region-syncer/iot-region-to-ddb-syncer.py [155:175]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    except Exception as e:
        logger.error('{}'.format(e))


def registry_indexing_enabled(c_iot_p):
    try:
        response = c_iot_p.get_indexing_configuration()
        logger.debug('response: {}'.format(response))

        logger.info('thingIndexingMode: {}'.format(response['thingIndexingConfiguration']['thingIndexingMode']))
        if response['thingIndexingConfiguration']['thingIndexingMode'] == 'OFF':
            return False

        return True
    except Exception as e:
        logger.error('{}'.format(e))
        raise Exception(e)


def lambda_handler(event, context):
    logger.info('syncer: start')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



source/lambda/iot-dr-region-syncer/iot-region-to-region-syncer.py [135:155]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    except Exception as e:
        logger.error('{}'.format(e))


def registry_indexing_enabled(c_iot_p):
    try:
        response = c_iot_p.get_indexing_configuration()
        logger.debug('response: {}'.format(response))

        logger.info('thingIndexingMode: {}'.format(response['thingIndexingConfiguration']['thingIndexingMode']))
        if response['thingIndexingConfiguration']['thingIndexingMode'] == 'OFF':
            return False

        return True
    except Exception as e:
        logger.error('{}'.format(e))
        raise Exception(e)


def lambda_handler(event, context):
    logger.info('syncer: start')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



