[PROJECT_ID]
with your GCP project ID, [NETWORK_NAME]
with the name of your VPC network, and [IP_RANGE]
with the IP range of your VPC network.[PROJECT_ID]
with your GCP project ID, [MEMBER]
with the email address or service account of the user, and [ROLE]
with the desired IAM role.[SINK_NAME]
with a name for your logging sink, and [BUCKET_NAME]
with the name of the Cloud Storage bucket where you want to store the logs.google-cloud-securitycenter
library to enable VPC Service Controls for CloudSpanner.update_organization_settings
method to update the organization settings and enable VPC Service Controls.google-cloud-iam
library to manage IAM roles and permissions for CloudSpanner.add_iam_policy_binding
method to add IAM policy bindings to grant appropriate roles and permissions.google-cloud-logging
library to enable audit logging for CloudSpanner.update_sink
method to create or update a logging sink to export audit logs to a desired destination.