source/lambda/sfn-iot-mr-thing-group-crud/lambda_function.py [137:149]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                description = ""
                if 'S' in event['NewImage']['description']:
                    description = event['NewImage']['description']['S']

                attrs = {}
                if 'M' in event['NewImage']['attributes']:
                    for key in event['NewImage']['attributes']['M']:
                        attrs[key] = event['NewImage']['attributes']['M'][key]['S']

                merge = True
                if attrs:
                    merge = False
                logger.info('description: {} attrs: {}'.format(description, attrs))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



source/lambda/sfn-iot-mr-thing-group-crud/lambda_function.py [154:166]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                description = ""
                if 'S' in event['NewImage']['description']:
                    description = event['NewImage']['description']['S']

                attrs = {}
                if 'M' in event['NewImage']['attributes']:
                    for key in event['NewImage']['attributes']['M']:
                        attrs[key] = event['NewImage']['attributes']['M'][key]['S']

                merge = True
                if attrs:
                    merge = False
                logger.info('description: {} attrs: {}'.format(description, attrs))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



