code: def shrink_blob(record, deletion):
      
      item = {
          "eventName": record["eventName"],
          EVENT_TOO_BIG_FLAG: (not deletion)
      }
  
      # To handle TTLs (if they happen)
      if record.get("userIdentity"):
          item["userIdentity"] = record["userIdentity"]
  
      # Remove the 'configuration' and 'requestParameters' fields from new and old images if applicable:
      if not deletion:
          # Only remove it from non-deletions:
          if record['dynamodb'].get('NewImage'):
              record['dynamodb']['NewImage'].pop('configuration', None)
              record['dynamodb']['NewImage'].pop('requestParameters', None)
  
      if record['dynamodb'].get('OldImage'):
          record['dynamodb']['OldImage'].pop('configuration', None)
          record['dynamodb']['OldImage'].pop('requestParameters', None)
  
      item['dynamodb'] = record['dynamodb']
  
      return item
docs: Makes a shrunken blob to be sent to SNS/SQS (due to the 256KB size limitations of SNS/SQS messages).
      This will essentially remove the "configuration" field such that the size of the SNS/SQS message remains under
      256KB.
      :param record:
      :return: