class Google::Apis::SecuritycenterV1::NotificationConfig
Cloud Security Command Center (Cloud SCC) notification configs. A notification config is a Cloud SCC resource that contains the configuration to send notifications for create/update events of findings, assets and etc.
Attributes
The description of the notification config (max of 1024 characters). Corresponds to the JSON property `description` @return [String]
The relative resource name of this notification config. See: cloud. google.com/apis/design/resource_names#relative_resource_name Example: “ organizations/`organization_id`/notificationConfigs/notify_public_bucket”. Corresponds to the JSON property `name` @return [String]
The Pub/Sub topic to send notifications to. Its format is “projects/[ project_id]/topics/”. Corresponds to the JSON property `pubsubTopic` @return [String]
Output only. The service account that needs “pubsub.topics.publish” permission to publish to the Pub/Sub topic. Corresponds to the JSON property `serviceAccount` @return [String]
The config for streaming-based notifications, which send each event as soon as it is detected. Corresponds to the JSON property `streamingConfig` @return [Google::Apis::SecuritycenterV1::StreamingConfig]
Public Class Methods
# File lib/google/apis/securitycenter_v1/classes.rb, line 1729 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/securitycenter_v1/classes.rb, line 1734 def update!(**args) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic) @service_account = args[:service_account] if args.key?(:service_account) @streaming_config = args[:streaming_config] if args.key?(:streaming_config) end