def METHOD_NAME(event, unused_context):
  """Entrypoint for the cloud function to redact pii from log messages."""
  del unused_context # The cloud functions context is unused.
  log_json = _read_pubsub_json(event)
  dlp_response = _get_redacted_dlp_response(log_json['jsonPayload']['message'])
  _post_scrubbed_message_to_pub_sub(_OUTPUT_TOPIC_NAME, dlp_response.item.value,
                                    log_json)