dry-engine-17210
11/20/2020, 8:39 PMpubsub_topic = pubsub.Topic(
"{}-topic".format(PUBSUB_TOPIC_PREFIX)
)
pubsub_topic_url = pubsub_topic.id.apply(
lambda id: "<http://pubsub.googleapis.com/|pubsub.googleapis.com/>" + id
)
logging_sink = logging.ProjectSink(
resource_name="{}-sink".format(LOGGING_SINK_PREFIX),
destination=pubsub_topic_url,
filter='LOG_ID("<http://cloudaudit.googleapis.com/activity|cloudaudit.googleapis.com/activity>") OR LOG_ID("<http://externalaudit.googleapis.com/activity|externalaudit.googleapis.com/activity>") OR LOG_ID("<http://cloudaudit.googleapis.com/system_event|cloudaudit.googleapis.com/system_event>") OR LOG_ID("<http://externalaudit.googleapis.com/system_event|externalaudit.googleapis.com/system_event>") OR LOG_ID("<http://cloudaudit.googleapis.com/access_transparency|cloudaudit.googleapis.com/access_transparency>") OR LOG_ID("<http://externalaudit.googleapis.com/access_transparency|externalaudit.googleapis.com/access_transparency>")'
)