source/lambda/iot-dr-layer/device_replication.py [37:48]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def get_iot_data_endpoint(region, iot_endpoints):
    try:
        logger.info('region: {} iot_endpoints: {}'.format(region, iot_endpoints))
        iot_data_endpoint = None
        for endpoint in iot_endpoints:
            if region in endpoint:
                logger.info('region: {} in endpoint: {}'.format(region, endpoint))
                iot_data_endpoint = endpoint
                break

        if iot_data_endpoint is None:
            logger.info('iot_data_endpoint not found calling describe_endpoint')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



source/lambda/sfn-iot-mr-shadow-syncer/lambda_function.py [38:49]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def get_iot_data_endpoint(region, iot_endpoints):
    try:
        logger.info('region: {} iot_endpoints: {}'.format(region, iot_endpoints))
        iot_data_endpoint = None
        for endpoint in iot_endpoints:
            if region in endpoint:
                logger.info('region: {} in endpoint: {}'.format(region, endpoint))
                iot_data_endpoint = endpoint
                break

        if iot_data_endpoint is None:
            logger.info('iot_data_endpoint not found calling describe_endpoint')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



