google-cloud-securitycenter
library to enable VPC Service Controls for your project.google-cloud-pubsub
library to implement access controls for your Pub/Sub topics and subscriptions.google-cloud-monitoring
library to monitor Pub/Sub activity and set up alerts for any suspicious or unauthorized events.google-cloud-securitycenter
, google-cloud-pubsub
, google-cloud-monitoring
) using pip before running these scripts.