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: "pubsub.googleapis.com/" + id
)
logging_sink = logging.ProjectSink(
resource_name="{}-sink".format(LOGGING_SINK_PREFIX),
destination=pubsub_topic_url,
filter='LOG_ID("cloudaudit.googleapis.com/activity") OR LOG_ID("externalaudit.googleapis.com/activity") OR LOG_ID("cloudaudit.googleapis.com/system_event") OR LOG_ID("externalaudit.googleapis.com/system_event") OR LOG_ID("cloudaudit.googleapis.com/access_transparency") OR LOG_ID("externalaudit.googleapis.com/access_transparency")'
)